Editor: Semantic Token Color Customizations
Customize code colors based on semantic meaning. This is useful for understanding what code does at a glance.
The following settings for example makes all methods hotpink, all readonly properties green, and all enum values italic:
"editor.semanticTokenColorCustomizations": {
"rules": {
"method": "#ff00ff",
"property.readonly": "#00ff0f",
"enumMember": {
"italic": true
}
}
}
Not all languages support semantic highlighting but it is supported out of the box for JavaScript and TypeScript.