Does vscode editor support .inc file highlight?

China☆狼群 提交于 2019-12-05 22:51:09

问题


I'm using .inc files in vscode, but I find that vscode does not support .inc files' highlight.Does vscode support inc file syntax highlighting?


回答1:


.inc files are used in multiple languages; what language are you using them in?

You can tell VSCode to apply language-specific syntax highlighting by editing the settings.json (File > Preferences > Settings) by adding the file extension to the highlighting category.

For example, to highlight .inc files as PHP,

{
"files.associations": { "*.inc": "php"}
}  

See this link for more details.




回答2:


2018 Update - Visual Studio Code 1.24.1

Its;

File > Preferences >  Settings

You will get a dual pane as below ;

Default User Settings     || User Settings
"files.associations": {}

Copy that over to the User Settings Pane ( right pane ) and paste at the bottom ( before the closing parentheses );

 ... || User Settings
          "files.associations": {
           "*.inc": "php"
          }
        } // closing parentheses


来源:https://stackoverflow.com/questions/42802259/does-vscode-editor-support-inc-file-highlight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!