用户区配置:
{
"window.menuBarVisibility": "compact",
"editor.largeFileOptimizations": false,
"editor.quickSuggestions": {
"strings": true
},
"diffEditor.ignoreTrimWhitespace": false,
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"workbench.editorAssociations": {
"*.dll": "default"
}
}
工作区配置:
{
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"workbench.settings.useSplitJSON": true,
//配置eslint
"eslint.run": "onSave",
"files.autoSave": "off",
"eslint.options": {
"plugins": [
"html"
]
},
// #每次保存的时候自动格式化
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
//为了符合eslint的两个空格间隔原则
"editor.tabSize": 2,
"editor.formatOnSave": true,
// #让prettier使用eslint的代码格式进行校验
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "force-expand-multiline",
"end_with_newline": false
},
"prettier": {
// 格式化不加分号
"semi": false,
// 格式化为单引号
"singleQuote": true
}
},
// 自动格式化粘贴的代码
"editor.formatOnPaste": true,
"editor.quickSuggestions": {
//开启自动显示建议
"other": true,
"comments": true,
"strings": true
},
"vetur.validation.template": false,
"javascript.suggest.enabled": true,
"editor.detectIndentation": true,
"emmet.includeLanguages": {
"vue": "html",
"vue-html": "html"
},
// 控制在活动代码片段内是否禁用快速建议。
"editor.suggest.snippetsPreventQuickSuggestions": false,
// #让vue中的js按编辑器自带的ts格式进行格式化
"vetur.format.defaultFormatter.js": "vscode-typescript",
"typescript.disableAutomaticTypeAcquisition": true,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"html.format.wrapAttributes": "force-aligned",
}
IDEA
安装无限重置试用
IDE Eval Reset
JRebel(需激活)
Lombok