What is the scope selector for changing the syntax color of data types (Number, String, Boolean) with textMateRules?
"editor.tokenColorCustomizations": {
"[Monokai Pro (Filter Spectrum)]": {
"textMateRules": [
{
"scope": ["???"],
"settings": {
"foreground": "#ff6188"
}
}
]
}
NOTE: I dont want to change theme. Im trying to only change the color of data types from white
How to find the TextMate Scope
- Open Command Palette and search for "Developer: Inspect Editor Tokens and Scopes"
- Place your mouse caret on top of the code you wish to change its color
- The TextMate scope you're looking for is usually the first line of "textmate scopes"
CodePudding user response:
You have to change your color theme in VS Code. For example the color theme you're using is Monokai
. The required theme seems to be Dark italic
.
Step 1
- So to change your theme first head on to extensions tab and search for
Dark Italic
and install it. The sample of Dark Italic is
Step 2
- Hit ctrl K ctrl T and Select Dark Italic.
CodePudding user response:
Bottom left of your screen select settings then go to Color Theme
Then, Select Dark (default Theme)