1 {
2 "explorer.confirmDelete": false,
3 "files.autoSave": "afterDelay",
4 "window.zoomLevel": 0, // 调整窗口的缩放级别
5 // "workbench.colorTheme": "Visual Studio Dark", // 指定用在工作台中的颜色主题
6
7 "javascript.format.insertSpaceBeforeFunctionParenthesis": true,// 让函数(名)和后面的括号之间加个空格
8 "editor.tabSize": 2, //制表符符号eslint
9 "editor.formatOnSave": false, //每次保存自动格式化
10 // "prettier.eslintIntegration": true, //让prettier使用eslint的代码格式进行校验
11 "prettier.semi": false, //去掉代码结尾的分号
12 "prettier.singleQuote": true, //使用带引号替代双引号
13 "vetur.format.defaultFormatter.html": "js-beautify-html", //格式化.vue中html
14 "vetur.format.defaultFormatter.js": "vscode-typescript", //让vue中的js按编辑器自带的ts格式进行格式化
15 "vetur.format.defaultFormatterOptions": {
16 "js-beautify-html": {
17 "wrap_attributes": "force-aligned" //属性强制折行对齐
18 }
19 },
20
21 "[html]": {
22 "editor.defaultFormatter": "HookyQR.beautify" // .html 文件采用 beautify 做为默认格式化程序
23 },
24 "[javascript]": {
25 "editor.defaultFormatter": "HookyQR.beautify"
26 },
27
28 // 在文件中对那些语法进行格式化
29 "beautify.language": {
30 "js": {
31 "type": [
32 "javascript",
33 "json"
34 ],
35 "filename": [
36 ".jshintrc",
37 ".jsbeautify"
38 ]
39 },
40 "css": [
41 "css",
42 "scss"
43 ],
44 "html": [
45 "htm",
46 "html",
47 "vue" //在这里加上vue
48 ]
49 },
50 "editor.suggestSelection": "first",
51 "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
52 "open-in-browser.default": "C:/Users/Administrator/AppData/Local/Google/Chrome/Application/chrome.exe",
53 "editor.wordWrap": "on",
54 "[vue]": {
55 "editor.defaultFormatter": "HookyQR.beautify"
56 },
57 "files.associations": {
58
59 }
60 }