本文中已安装的插件:
- Vetur:vue2专用插件
- Vue Language Features (Volar):vue2专用插件(某些功能与vetur 冲突,如校验根节点是否符合规范)
- Prettier - Code formatter:美化代码格式的插件
- One Dark Pro:VS Code 主题插件
- GitLens — Git supercharged:Git插件
- Code Spell Checker:单词拼写检查插件
这些插件都是常用的插件:VS Code 常用的插件,让你的 VS Code 好用到飞起,开发必备
详情查看 setting.json ,朋友们可以选择使用哪些配置,几乎都已经标明了配置是做什么用的。
setting.json :
{
"workbench.iconTheme": "vscode-icons",
"workbench.colorCustomizations": {
"editorLineNumber.foreground": "#17a346",
"editorCursor.foreground": "#fff",
"editor.lineHighlightBackground": "#445",
"editor.selectionBackground": "#666"
},
"workbench.startupEditor": "none",
"workbench.colorTheme": "One Dark Pro",
"editor.hover.delay": 5000,
"editor.suggestSelection": "first",
"editor.formatOnSave": false,
"editor.tabCompletion": "on",
"editor.tabSize": 4,
"editor.fontSize": 16,
"editor.wordWrap": "on",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.wordSeparators": "`~!@#$%^&*()=+[{]}\\|;:'\",.<>/?",
"oneDarkPro.editorTheme": "One Dark Pro",
"oneDarkPro.vivid": true,
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
"vue-html": "html",
"vue": "html",
"javascript": "html",
"wxml": "html"
},
"emmet.showAbbreviationSuggestions": true,
"emmet.showExpandedAbbreviation": "always",
"files.associations": {
"*.cjson": "jsonc",
"*.wxss": "css",
"*.wxs": "javascript"
},
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"gitlens.advanced.messages": {
"suppressImproperWorkspaceCasingWarning": false
},
"vsicons.dontShowNewVersionMessage": true,
"search.followSymlinks": false,
"merge-conflict.autoNavigateNextConflict.enabled": true,
"bracketPairColorizer.depreciation-notice": false,
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"vetur.ignoreProjectWarning": true,
"vetur.format.options.tabSize": 4,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatterOptions": {
"prettier": {
"semi": false,
"arrowParens": "avoid",
"bracketSpacing": true,
"trailingComma": "es5"
},
"js-beautify-html": {
"wrap_line_length": 120,
"wrap_attributes": "auto",
"end_with_newline": false
}
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"cSpell.languageSettings": [],
"cSpell.userWords": [
"vuex"
],
"prettier.tabWidth": 4,
"prettier.printWidth": 120,
"prettier.vueIndentScriptAndStyle": true,
"prettier.semi": false,
"prettier.proseWrap": "preserve",
"prettier.arrowParens": "avoid",
"prettier.bracketSpacing": true,
"prettier.endOfLine": "auto",
"prettier.htmlWhitespaceSensitivity": "ignore",
"prettier.ignorePath": ".prettierignore",
"prettier.jsxBracketSameLine": false,
"prettier.requireConfig": false,
"prettier.trailingComma": "es5",
"terminal.integrated.allowMnemonics": true
}
? ?
如有不足,望大家多多指点! 谢谢!
|