vscode通用配置文件
command + shift + p open user setting, 再手动装个Eslint 插件
{
"editor.tabSize": 2,
"workbench.startupEditor": "newUntitledFile",
"explorer.confirmDragAndDrop": false,
"editor.minimap.enabled": false,
"git.confirmSync": false,
"javascript.updateImportsOnFileMove.enabled": "never",
"typescript.updateImportsOnFileMove.enabled": "never",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"editor.lineNumbers": "on",
"editor.cursorSurroundingLines": 8,
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"emmet.triggerExpansionOnTab": true,
"workbench.editor.enablePreview": false,
"diffEditor.ignoreTrimWhitespace": false,
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"editor.mouseWheelZoom": true,
"terminal.integrated.scrollback": 1000,
"files.associations": {
"*.tsx": "typescriptreact"
},
"typescript.tsserver.log": "off",
"extensions.ignoreRecommendations": true,
"workbench.colorTheme": "Monokai",
"editor.inlineSuggest.enabled": true,
"workbench.sideBar.location": "right",
"[dart]": {
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.rulers": [
80
],
"editor.selectionHighlight": false,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.suggestSelection": "first",
"editor.tabCompletion": "onlySnippets",
"editor.wordBasedSuggestions": false
},
"git.openRepositoryInParentFolders": "always",
"git.ignoreRebaseWarning": true,
}