vscode 编辑器配置
vscode 配置
{
"editor.snippetSuggestions": "top",
"files.autoSave": "off",
"editor.fontSize": 16,
"editor.fontFamily": "consolas, Micorsoft Yahei , monaco ,'Courier New', monospace",
"open-in-browser.default": "chrome",
"window.zoomLevel": 0,
"editor.lineHeight": 24,
"editor.tabSize": 2,
"extensions.ignoreRecommendations": false,
"liveServer.settings.donotShowInfoMsg": true,
"liveServer.settings.donotVerifyTags": true,
"liveSassCompile.settings.generateMap": false,
"search.followSymlinks": false,
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"workbench.statusBar.visible": true,
"workbench.activityBar.visible": true,
"emmet.syntaxProfiles": {
"vue-html": "html",
"vue": "html"
},
// 微信配置
"files.associations": {
"*.wxml": "html",
"*.wxss": "css"
},
// "emmit.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
"vue-html": "html",
"vue": "html",
"javascript": "javascriptreact"
},
"beautify.language": {
"js": {
"type": [
"javascript",
"json"
],
"filename": [
".jshintrc",
".jsbeautify"
]
},
"css": [
"css",
"scss",
"less",
// "wxss",
],
"html": [
"htm",
"html",
// "wxml",
]
},
// "editor.renderIndentGuides": false,
"workbench.startupEditor": "newUntitledFile",
"editor.foldingStrategy": "indentation",
"terminal.external.windowsExec": "C:\\WINDOWS\\System32\\cmd.exe",
// 弃用
// "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
"window.title": "${dirty}${activeEditorLong}${separator}${rootName}${separator}${appName}",
"diffEditor.ignoreTrimWhitespace": false,
"editor.quickSuggestions": {
"strings": true
},
//x
"window.menuBarVisibility": "default",
"workbench.sideBar.location": "left",
"editor.renderControlCharacters": false,
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"update.enableWindowsBackgroundUpdates": false,
"update.showReleaseNotes": false,
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"editor.wordSeparators": "`~!@#%^&*()=+[{]}\\|;:'\",.<>/?",
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"workbench.iconTheme": "vscode-icons",
// // 需要 npm install -g eslint-plugin-vue
// "eslint.options": {
// "extensions": [
// ".js",
// ".vue"
// ]
// },
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": [
"javascript",
"typescript",
"javascriptreact",
"typescriptreact",
"vue-html",
"html",
"vue"
],
"vetur.format.defaultFormatter.html": "js-beautify-html",
//
// "vetur.format.defaultFormatter.js": "vscode-typescript",
// "vetur.validation.template": false,
"workbench.colorTheme": "Sublime Material Theme - Dark",
"javascript.updateImportsOnFileMove.enabled": "always",
"[css]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"[less]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"security.workspace.trust.untrustedFiles": "open",
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
//小程序能使用less语法
// "less.compile": {
// "outExt": ".wxss"
// }
}
vscode 使用的插件
这是本人编辑器所使用的配置,各位可以参考使用,小程序注释掉的部分是因为目前用不上才注释的