1. 编辑器失去焦点时自动保存文件
"files.autoSave": "onFocusChange"
2. 提高开发效率的插件
EditorConfig for VS Code
ESLint
gitignore
language-stylus
Nunjucks
One Dark Pro
PostCSS syntax
Vetur
View In Browser
vscode-icons
3. EditorConfig for VS Code 超好用插件,编辑器文件保存自动格式化,
配置文件名 .editorconfig,常用配置:
root = true [*] charset = utf-8 end_of_line = lf indent_size = 2 indent_style = space insert_final_newline = true trim_trailing_whitespace = true