Skip to content

Instantly share code, notes, and snippets.

@poshcodebear
Last active April 26, 2022 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save poshcodebear/e3f279a8a3289e29ca51ede85a7b083e to your computer and use it in GitHub Desktop.
Save poshcodebear/e3f279a8a3289e29ca51ede85a7b083e to your computer and use it in GitHub Desktop.
VSCode syntax highlighting example for Material Theme Darker High Contrast
{
"editor.tokenColorCustomizations": {
// Note: you can leave out the theme and the syntax rules will apply to all themes
"[Material Theme Darker High Contrast]": {
"textMateRules": [
{
"scope": "variable.other.readwrite",
"settings": {
"foreground": "#89DDFF"
}
},
{
"scope": "support.variable.automatic",
"settings": {
"foreground": "#ffa66b"
}
},
{
"scope": "support.variable.drive",
"settings": {
"foreground": "#fcff67"
}
},
{
// You can define multiple scopes to receive the same settings
"scope": [
"variable.other.member",
"variable.other.property"
],
"settings": {
"foreground": "#dcdcaa"
}
},
{
"scope": "comment",
"settings": {
"foreground": "#97e5979a"
}
},
{
"scope": [
"keyword.control",
"keyword.operator.unary"
],
"settings": {
"foreground": "#1de994",
// You can also change the fontStyle with things like italics
// If you set it blank like below, it will override the default, in this case turning off italics
// for this scope
"fontStyle": ""
}
},
{
"scope": "keyword.operator.assignment",
"settings": {
"foreground": "#e779d9",
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment