1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "One Dark Pro",
"vetur.validation.template": false,
"editor.quickSuggestions": {
"strings": true
},
"liveServer.settings.donotShowInfoMsg": true,
"git.autofetch": true,
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 5000,
"eslint.options": {
// 这里的{project_path},代表项目目录
"configFile": "./.eslintrc.js",
},
// "eslint.validate": [
// "javascript",
// "javascriptreact",
// {
// "language": "html",
// "autoFix": true
// },
// {
// "language": "vue",
// "autoFix": true
// }
// ],
"terminal.integrated.rendererType": "dom",
"javascript.validate.enable": false,
//.vue文件template格式化支持,并使用js-beautify-html插件
"vetur.format.defaultFormatter.html": "js-beautify-html",
//js-beautify-html格式化配置,属性强制换行
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "force-aligned"
}
},
//根据文件后缀名定义vue文件类型
"files.associations": {
"*.vue": "vue"
},
"git.enableSmartCommit": true,
"team.showWelcomeMessage": false,
"sync.gist": "b8661caabf18907577ba6fd62e14363e",
"sync.autoDownload": true,
"sync.autoUpload": true,
"sync.forceUpload": true,
"terminal.integrated.shell.linux": "/usr/bin/zsh",
"editor.fontFamily": "Fira Code, DejaVu Sans Mono for Powerline, Consolas, 'Courier New', monospace",
"debug.console.fontSize": 12,
"terminal.integrated.fontSize": 12,
"files.eol": "\r\n",
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.fontLigatures": true,
"terminal.integrated.fontFamily": "等距更纱黑体 SC",
"gitlens.views.repositories.branches.layout": "list",
"python.jediEnabled": false,
"gitlens.views.repositories.files.layout": "tree",
"emmet.triggerExpansionOnTab": true,
"emmet.showSuggestionsAsSnippets": true,
"files.exclude": {
"**/.git": false
},
"explorer.confirmDelete": false,
"window.zoomLevel": 0,
"remote.SSH.remotePlatform": {
"ali": "linux"
},
// "liveServer.settings.host": "192.168.31.152",
// "liveServer.settings.port": 5500,
// todo-tree
"todo-tree.tree.showScanModeButton": false,
"todo-tree.general.tags": ["TODO:", "FIXME:"],
"todo-tree.highlights.defaultHighlight": {
"gutterIcon": true
},
"todo-tree.highlights.customHighlight": {
"TODO:": {
"foreground": "#fff",
"background": "#ffbd2a",
"iconColour": "#ffbd2a"
},
"FIXME:": {
"foreground": "#fff",
"background": "#f06292",
"icon": "flame",
"iconColour": "#f06292"
}
},
// prettier
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[less]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.wordWrap": "on",
"editor.quickSuggestions": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}