Skip to content

Instantly share code, notes, and snippets.

@vuon9
Created January 31, 2022 04:27
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 vuon9/4b6345f7b333c2e607ded783e3260621 to your computer and use it in GitHub Desktop.
Save vuon9/4b6345f7b333c2e607ded783e3260621 to your computer and use it in GitHub Desktop.
Go (golang) - editor.tokenColorCustomizations vscode settings
{
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
//following will be in italic (=FlottFlott)
"comment",
"entity.name.type.class", //class names
"keyword", //import, export, return…
"constant", //String, Number, Boolean…, this, super
"storage.modifier", //static keyword
"storage.type.class.js" //class keyword
],
"settings": {
"fontStyle": "italic"
}
},
{
"scope": [
//following will be excluded from italics (VSCode has some defaults for italics)
"invalid",
"keyword.operator",
"constant.numeric.css",
"keyword.other.unit.px.css",
"constant.numeric.decimal.js",
"constant.numeric.json"
],
"settings": {
"fontStyle": ""
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment