{
"workbench.iconTheme": "vscode-icons",
// tab 大小为2个空格
"editor.tabSize": 2,
// 100 列后换行
"editor.wordWrapColumn": 160,
// 开启 vscode 文件路径导航
"breadcrumbs.enabled": true,
// prettier 设置语句末尾不加分号
"prettier.semi": false,
// prettier 设置强制单引号
"prettier.singleQuote": true,
// 显示 markdown 中英文切换时产生的特殊字符
"editor.renderControlCharacters": true,
// 设置 eslint 保存时自动修复
"eslint.autoFixOnSave": true,
// eslint 检测文件类型
"eslint.validate": [
"vue",
"html",
"javascript",
"typescript",
"javascriptreact",
"typescriptreact"
],
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "aligned-multiple"
},
"prettyhtml": {
"printWidth": 100,
"singleQuote": false,
"wrapAttributes": false,
"sortAttributes": false
}
},
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatter.js": "vscode-typescript",
// "editor.codeActionsOnSave": {
// "source.fixAll.eslint": true
// },
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"[html]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
// 将小程序代码高亮显示
"files.associations": {
"*.wxml": "html",
"*.wxss": "css",
},
"eslint.alwaysShowStatus": true,
// 设置 eslint 保存时自动修复
"eslint.autoFixOnSave": true,
"diffEditor.ignoreTrimWhitespace": false,
"explorer.compactFolders": false,
"[javascript]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"[json]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"editor.fontSize": 16,
"editor.minimap.maxColumn": 160,
"eslint.migration.2_x": "off",
"[css]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"search.followSymlinks": false,
"thiefBook.filePath": "D:\\work2\\11.txt",
"thiefBook.currPageNumber": 1,
"thiefBook.pageSize": 200
}
常用 vscode 配置
最新推荐文章于 2024-04-13 15:44:05 发布