Skip to content

Instantly share code, notes, and snippets.

@Oluwasetemi
Forked from dev01d/vscode-italics.json
Created May 30, 2018 03:33
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 Oluwasetemi/12d038b44645d8134dffab28d6d076e8 to your computer and use it in GitHub Desktop.
Save Oluwasetemi/12d038b44645d8134dffab28d6d076e8 to your computer and use it in GitHub Desktop.
VSCode italics in (almost) any theme
// All you need to do is add a font that has pretty good itlaics support i.e Fira, Operator, etc. and then add these two params to your existing User settings.
// Tested in Monokai Sharp and Super One Dark
{
"editor.fontFamily": "'Operator Mono', Menlo, Monaco, 'Courier New', monospace",
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"comment",
"keyword.control",
"keyword.operator.new",
"keyword.operator.assignment",
"keyword.operator.arithmetic",
"keyword.other",
"storage.modifier",
"storage.type",
"support.class",
"support.constant",
"support.function",
"support.other",
"entity.name.class",
// Function might be overkill in JSX files
"entity.name.function",
"entity.name.method",
"entity.name.section",
"entity.name.selector",
"entity.name.type",
"entity.other",
"entity.other.attribute-name",
"entity.other.inherited-class"
],
"settings": {
"fontStyle": "italic"
}
},
{
// No one likes an italicised arrow function
"scope": [
"storage.type.function.arrow"
],
"settings": {
"fontStyle": ""
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment