Set language for syntax highlighting in Visual Studio Code

后端 未结 6 1086
庸人自扰
庸人自扰 2020-11-30 16:33

Before the confusion begins, this question is about Code, the new lightweight Visual Studio Editor. You can get it from here: https://code.visualstudio.com/

I have a

6条回答
  •  清歌不尽
    2020-11-30 17:32

    Syntax Highlighting for custom file extension

    Any custom file extension can be associated with standard syntax highlighting with custom files association in User Settings as follows.

    Note that this will be a permanent setting. In order to set for the current session alone, type in the preferred language in Select Language Mode box (without changing file association settings)

    Installing new Syntax Package

    If the required syntax package is not available by default, you can add them via the Extension Marketplace (Ctrl+Shift+X) and search for the language package.

    You can further reproduce the above steps to map the file extensions with the new syntax package.

提交回复
热议问题