settings.json,里面是用户的一些常用设置
{
// tab 大小为2个空格
"editor.tabSize": 2,
// 编辑器换行
"editor.wordWrap": "off",
// 保存时格式化
"editor.formatOnSave": false,
// 开启 vscode 文件路径导航
"breadcrumbs.enabled": true,
// prettier 设置语句末尾不加分号
"prettier.semi": false,
// prettier 设置强制单引号
"prettier.singleQuote": true,
"vetur.validation.template": false,
// 选择 vue 文件中 template 的格式化工具
"vetur.format.defaultFormatter.html": "js-beautify-html",
// js 默认为prettier,但是prettier一些格式化规则过于严苛。也有可能是我自身理解不足。
"vetur.format.defaultFormatter.js": "vscode-typescript",
// scss,css 同理
"vetur.format.defaultFormatter.scss": "prettier",
// vetur 的自定义设置
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "aligned-multiple"
},
"prettier": {
"singleQuote": true,
"semi": false,
"printWidth": 100,
"wrapAttributes": false,
"sortAttributes": false
}
},
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.parameterHints": true,
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
"files.associations": {
"*.vue": "vue"
},
"update.enableWindowsBackgroundUpdates": false,
"vueBeautify.isRootIndent": false,
"extensions.autoCheckUpdates": false,
"extensions.autoUpdate": false,
//vscode(visual studio code)关闭自动更新
"update.mode":"none",
}
关闭VSCode的自动更新



网友评论