{
"files.autoSave": "off",
"window.title": "${dirty}${activeEditorLong}${separator}${rootName}${separator}${appName}",
"go.languageServerExperimentalFeatures": {
"diagnostics": true // for build and vet errors as you type
},
"[go]": {
"editor.snippetSuggestions": "none",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"gopls": {
"usePlaceholders": true // add parameter placeholders when completing a function
},
"files.eol": "\n",
"workbench.editor.enablePreview": false,
"editor.fontSize": 16, // formatting only supports LF line endings
//配置eslint
"eslint.autoFixOnSave": true,
"files.autoSave": "off",
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
{
"language": "vue",
"autoFix": true
}
],
// 改为你的文件路径
"eslint.options": {
"configFile": "./.eslintrc.js"
},
//为了符合eslint的两个空格间隔原则
"editor.tabSize": 2,
"editor.quickSuggestions": {
"strings": true
}
}