vscode使用笔记

阅读量: searchstar 2023-03-22 20:28:45
Categories: Tags:

只对特定语言开启保存时自动格式化

例如只对js开启保存时自动格式化:

"[javascript]": {
    "editor.formatOnSave": true
}

Language Identifiers: https://code.visualstudio.com/docs/languages/identifiers

补充:

Language Identifier 含义
cmake CMakeLists.txt
jsonc JSON with Comments
markdown Markdown

来源:https://stackoverflow.com/questions/44831313/how-to-exclude-file-extensions-and-languages-from-format-on-save-in-vscode

切换字体

默认的字体不行,1l都分不清。可以在Editor: Font Family里更改字体,推荐Hack

'Hack', 'monospace', monospace