Skip to content

Instantly share code, notes, and snippets.

@swiftgaruda
Created April 6, 2023 21:55
Show Gist options
  • Select an option

  • Save swiftgaruda/5e00361ce15902c1c938b57088c93289 to your computer and use it in GitHub Desktop.

Select an option

Save swiftgaruda/5e00361ce15902c1c938b57088c93289 to your computer and use it in GitHub Desktop.
Visual Studio Code font config for editor with MonoLisa Variable
//-- font
"editor.fontFamily": "MonoLisa Variable",
// When lineHeight is set to zero, VS Code will figure out the
// the height automatically based on the font
"editor.lineHeight": 0,
// You can use standard CSS syntax here. To enable
// ss01 for example, you could set "'ss01' on"
"editor.fontSize": 12,
"editor.fontLigatures": "'calt' on, 'liga' on, 'ss01' on, 'ss02' on, 'ss03' on, 'ss07' on, 'ss08' on, 'ss09' on, 'ss11' on, 'ss12' on",
"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": ""
}
}
]
},
// -- end font
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment