Since the function name and argument name when calling the user function of the Python program (* .py) were not highlighted in the default theme (Default Dark +) of Visual Studio Code (1.49.2), add the settings to "settings.json". By doing so, it can be displayed.
The name (eg print_debug) and arguments when calling the user function are not highlighted.
It will be highlighted.
settings.json
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"meta.function-call.python",
],
"settings": {
"foreground": "#dcdcaa"
}
},{
"scope": [
"meta.function-call.arguments.python",
],
"settings": {
"foreground": "#9cdcfe"
}
},{
"scope": [
"punctuation.definition.list.begin.python",
"punctuation.definition.list.end.python"
],
"settings": {
"foreground": "#fff"
}
}
]
}
If the highlight is not displayed even after updating the settings, check the following points. --Incorrect addition of "settings.json". Is it in JSON format? Is there a conflict with the existing settings? --Are you editing "settings.json" in "Color Customizations"? --Is the extension of the Python program * .py? --Are there any conflicts with Extensions?
The highlight target is specified by "scope". By changing the value specified for this "scope", the highlight target will also be changed.
Recommended Posts