How can I get VS's python syntax highlighting in VS code?

前端 未结 7 1074
终归单人心
终归单人心 2021-02-08 14:20

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

7条回答
  •  逝去的感伤
    2021-02-08 14:32

    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",
    }
    

提交回复
热议问题