vscode常用配置

{
"extensions.ignoreRecommendations": false,
"editor.renderIndentGuides": false,
"workbench.colorTheme": "Monokai",
"editor.tabSize": 2,
"editor.formatOnType": true,
"json.format.enable": true,
"workbench.startupEditor": "newUntitledFile",
"auto-close-tag.activationOnLanguage": [
"html",
"cshtml",
"xml",
"php",
"blade",
"ejs",
"handlebars",
"jinja",
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"plaintext",
"markdown",
"razor",
"vue",
"liquid"
],
"emmet.includeLanguages": {
"vue-html": "html",
"vue": "html"
},
"files.associations": {
".cshtml": "html",
"
.vue": "vue",
".wpy": "vue"
},
"editor.fontSize": 16,
"editor.fontFamily": "'ubuntu mono','monaco'", //,PingFang SC',consolas,
"debugwrapper.wrappers": {
"javascript": "console.log('SEL)",
"vue": "console.log('SEL)",
"typescript": "console.log('SEL)",
"php": "echo '

SEL); echo '
';",
"default": "print($SEL);"
},
//autoFixedOnSave 设置已废弃,采用如下新的设置
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.format.enable": true,
//autoFix默认开启,只需输入字符串数组即可
"eslint.validate": ["javascript", "vue", "html"],
"eslint.options": {
"plugins": [
"html"
]
},
"eslint.run": "onSave",
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false,
"suppressResultsExplorerNotice": false,
"suppressShowKeyBindingsNotice": true,
"suppressUpdateNotice": true,
"suppressWelcomeNotice": true
},
//离开焦点保存
"files.autoSave": "off",
"git.autofetch": true,
"guides.active.width": 2,
"guides.active.color.dark": "rgba(255, 60, 60, 0.75)",
"gitlens.keymap": "alternate",
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"terminal.integrated.rendererType": "dom",
"javascript.updateImportsOnFileMove.enabled": "never",
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"workbench.iconTheme": "vscode-icons",
"vsicons.dontShowNewVersionMessage": true,
"workbench.editorAssociations": [
{
"viewType": "default",
"filenamePattern": "
.vue"
}
]
}

你可能感兴趣的:(vscode常用配置)