vs code 插件推荐
json配置:
{
"editor.fontSize": 16,
"[javascript]": {
// #每次保存的时候自动格式化
"editor.formatOnSave": true,
// #每次保存的时候将代码按eslint格式进行修复
"eslint.autoFixOnSave": true,
"editor.defaultFormatter": "ryannaddy.vscode-format"
},
"[html]": {
"editor.defaultFormatter": "ryannaddy.vscode-format"
},
"emmet.triggerExpansionOnTab": true,
"files.associations": {
"*.js": "javascript"
},
"workbench.iconTheme": "vscode-icons",
"workbench.editor.enablePreview": false, //打开文件不覆盖
"search.followSymlinks": false, //关闭快速预览
"liveServer.settings.donotShowInfoMsg": true, //关闭liveserver提示
"files.autoSave": "off", //打开自动保存
// "editor.fontSize": 16, //设置文字大小
// "editor.lineHeight": 24, //设置文字行高
"editor.lineNumbers": "on", //开启行数提示
"editor.quickSuggestions": {
//开启自动显示建议
"other": true,
"comments": true,
"strings": true
},
"workbench.colorTheme": "Darcula Theme from IntelliJ", //指定工作台中使用的颜色主题
"window.zoomLevel": 0, // 调整窗口的缩放级别
"editor.tabSize": 2, //制表符符号eslint
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"files.associations": {
"*.js": "javascriptreact"
},
"javascript.updateImportsOnFileMove.enabled": "always",
// #每次保存的时候自动格式化
"editor.formatOnSave": true,
// #每次保存的时候将代码按eslint格式进行修复
"eslint.autoFixOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
}