1 | initial version |
To italicize certain keywords in Visual Studio Code, you can use the TextMate grammar which allows you to define scopes for different portions of your code.
Ctrl + ,
(Windows) or Cmd + ,
(Mac). "editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "keyword.control.yourKeywordHere",
"settings": {
"fontStyle": "italic"
}
},
]
}
Note: You can find the scope of a certain keyword by placing your cursor on the keyword and pressing Ctrl + Shift + P
, then typing "Scope" and selecting "Developer: Inspect TM Scopes".