It seems like VS Community with python tools has a better syntax highlighting than VS Code with \"Python\" by Don Jayamanne. As you can see in the picture attached, VS Community
I've tried some workarounds, but the one that worked for me was installing: Python extension for Visual Studio Code
It comes with much more than you need, but solves the issue without patchwork.
VS Code About: Version: 1.52.1 (system setup)
settings.json
:
{
"window.zoomLevel": 0,
"workbench.editorAssociations": [
{
"viewType": "jupyter.notebook.ipynb",
"filenamePattern": "*.ipynb"
}
],
"git.ignoreMissingGitWarning": true,
"workbench.colorTheme": "Default Dark+",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"python.languageServer": "Microsoft",
}