Skip to content

Instantly share code, notes, and snippets.

@rafayali
Last active October 21, 2018 06:44
Show Gist options
  • Save rafayali/1dfec9dd669abe1c532ed26c0a864fbb to your computer and use it in GitHub Desktop.
Save rafayali/1dfec9dd669abe1c532ed26c0a864fbb to your computer and use it in GitHub Desktop.
Custom font stlying for Operator Mono
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
//following will be in italics (=Pacifico)
"comment",
"entity.name.type.class", //class names
"keyword", //import, export, return…
//"support.class.builtin.js", //String, Number, Boolean…, this, super
"storage.modifier", //static keyword
"storage.type.class.js", //class keyword
"storage.type.function.js", // function keyword
"storage.type.js", // Variable declarations
"storage.type.generic.java",
"keyword.control.import.js", // Imports
"keyword.control.from.js", // From-Keyword
//"entity.name.type.js", // new … Expression
"keyword.control.flow.js", // await
"keyword.control.conditional.js", // if
"keyword.control.loop.js", // for
"keyword.operator.new.js", // new
],
"settings": {
"fontStyle": "italic"
}
},
{
"scope": [
"storage.type.annotation"
],
"settings": {
"fontStyle": "italic"
}
},
{
"scope": [
//following will be excluded from italics (My theme (Monokai dark) has some defaults I don't want to be in italics)
"invalid",
"keyword.operator",
"constant.numeric.css",
"keyword.other.unit.px.css",
"constant.numeric.decimal.js",
"constant.numeric.json",
"entity.name.type.class.js"
],
"settings": {
"fontStyle": ""
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment