vscode中的setting.json配置
1、vue2
{
"files.associations": {
"*.vue": "vue",
"*.cshtml": "html",
"*.js": "javascript",
"*.dwt": "html"
},
"eslint.validate": [
"html",
"vue",
"javascript",
"typescript",
"javascriptreact",
"typescriptreact"
],
"eslint.options": {
"extensions": [
"js",
"vue",
".ts",
".tsx"
]
},
"eslint.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"eslint.autoFixOnSave": "explicit"
},
"editor.wordWrapColumn": 220,
"javascript.format.insertSpaceBeforeFunctionParenthesis": false,
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[json]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
"[css]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
"[scss]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[vue]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"editor.fontSize": 16,
"editor.wordWrap": "on",
"editor.tabSize": 2,
"editor.colorDecorators": false,
"editor.snippetSuggestions": "top",
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"editor.fontLigatures": false,
"editor.mouseWheelZoom": true,
"liveServer.settings.port": 0,
"git.ignoreWindowsGit27Warning": true,
"eslint.nodeEnv": "",
"diffEditor.ignoreTrimWhitespace": false,
"liveServer.settings.donotShowInfoMsg": true,
"editor.formatOnSave": false,
"markdownlint.focusMode": false,
"eslint.format.enable": true,
"eslint.lintTask.enable": true,
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
"vue-html": "html",
"vue": "html"
},
"files.defaultLanguage": "vue",
"workbench.iconTheme": "vscode-icons",
"workbench.productIconTheme": "vscode-v1-icons",
"workbench.colorTheme": "Default Dark+",
"git.confirmSync": false,
"window.menuBarVisibility": "visible",
"search.collapseResults": "auto",
"search.decorations.badges": false,
"workbench.editor.wrapTabs": true,
"editor.fontVariations": false,
"editor.smoothScrolling": true,
"editor.cursorBlinking": "expand",
"editor.cursorSmoothCaretAnimation": "on",
"workbench.list.smoothScrolling": true,
"editor.guides.bracketPairs": true,
"editor.bracketPairColorization.enabled": true,
"editor.autoClosingBrackets": "beforeWhitespace",
"editor.autoClosingDelete": "always",
"editor.autoClosingOvertype": "always",
"editor.autoClosingQuotes": "beforeWhitespace"
}
2、vue3
{
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[vue]": {
"editor.defaultFormatter": "yoyo930021.vuter"
},
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"security.workspace.trust.untrustedFiles": "open",
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[css]": {
"editor.defaultFormatter": "Vue.volar"
},
"[scss]": {
"editor.defaultFormatter": "Vue.volar"
},
"[typescriptreact]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
"workbench.colorCustomizations": {},
"editor.tabSize": 4,
"gitlens.defaultDateLocale": "zh-cn",
"typescript.locale": "zh-CN",
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"workbench.colorTheme": "Default Dark+",
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"javascript.format.enable": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"vue",
"typescript",
"typescriptreact"
],
"[markdown]": {
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
},
"vue.complete.casing.tags": "autoKebab",
"files.associations": {
"*.vue": "vue"
},
"[plaintext]": {
"editor.unicodeHighlight.ambiguousCharacters": false,
"editor.unicodeHighlight.invisibleCharacters": false
},
"editor.minimap.renderCharacters": false,
"editor.minimap.autohide": true,
"editor.minimap.enabled": false,
"gitlens.views.commitDetails.files.layout": "tree",
"gitlens.advanced.fileHistoryShowAllBranches": true,
"editor.foldingStrategy": "indentation",
"windicss.enableCodeFolding": true,
"editor.foldingImportsByDefault": true,
"gitlens.menus": {
"editor": {
"blame": true,
"clipboard": true,
"compare": true,
"history": true,
"remote": true
},
"editorGroup": {
"blame": true,
"compare": true
},
"editorGutter": {
"compare": true,
"remote": true,
"share": true
},
"editorTab": {
"clipboard": true,
"compare": true,
"history": true,
"remote": true
},
"explorer": {
"clipboard": true,
"compare": true,
"history": true,
"remote": true
},
"ghpr": {
"worktree": true
},
"scm": {
"graph": true
},
"scmRepositoryInline": {
"graph": true,
"stash": false
},
"scmRepository": {
"authors": true,
"generateCommitMessage": true,
"graph": false
},
"scmGroupInline": {
"stash": true
},
"scmGroup": {
"compare": true,
"openClose": true,
"stash": true
},
"scmItemInline": {
"stash": false
},
"scmItem": {
"clipboard": true,
"compare": true,
"history": true,
"remote": true,
"share": true,
"stash": true
}
},
"vue.codeLens.enabled": false,
"vue.doctor.status": false,
"vue.codeActions.enabled": false,
"vue.splitEditors.layout.left": [
"script",
"scriptSetup",
"styles"
],
"editor.unicodeHighlight.allowedLocales": {
"zh-hant": true
},
"editor.fontVariations": false,
"diffEditor.ignoreTrimWhitespace": false,
"editor.fontLigatures": false,
"github.copilot.editor.enableAutoCompletions": true,
"workbench.editor.enablePreview": false,
"editor.fontWeight": "normal",
"liveServer.settings.donotShowInfoMsg": true,
"git.confirmSync": false,
}