Skip to content

Commit 952f7b6

Browse files
committed
chore: vscode setting
1 parent 37c41ae commit 952f7b6

File tree

1 file changed

+129
-14
lines changed

1 file changed

+129
-14
lines changed

.vscode/settings.json

Lines changed: 129 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,64 @@
11
{
2-
"typescript.tsdk": "node_modules/typescript/lib",
3-
"prettier.enable": true,
2+
"typescript.tsdk": "./node_modules/typescript/lib",
3+
"volar.tsPlugin": true,
4+
"volar.tsPluginStatus": false,
45
"npm.packageManager": "pnpm",
5-
"editor.formatOnType": true,
6-
"editor.formatOnSave": true,
7-
"editor.formatOnPaste": true,
8-
"editor.codeActionsOnSave": {
9-
"source.fixAll.eslint": true
6+
"editor.tabSize": 2,
7+
"prettier.printWidth": 100, // 超过最大值换行
8+
"editor.defaultFormatter": "esbenp.prettier-vscode",
9+
"files.eol": "\n",
10+
"search.exclude": {
11+
"**/node_modules": true,
12+
"**/*.log": true,
13+
"**/*.log*": true,
14+
"**/bower_components": true,
15+
"**/dist": true,
16+
"**/elehukouben": true,
17+
"**/.git": true,
18+
"**/.gitignore": true,
19+
"**/.svn": true,
20+
"**/.DS_Store": true,
21+
"**/.idea": true,
22+
"**/.vscode": false,
23+
"**/yarn.lock": true,
24+
"**/tmp": true,
25+
"out": true,
26+
"dist": true,
27+
"node_modules": true,
28+
"CHANGELOG.md": true,
29+
"examples": true,
30+
"res": true,
31+
"screenshots": true,
32+
"yarn-error.log": true,
33+
"**/.yarn": true
34+
},
35+
"files.exclude": {
36+
"**/.cache": true,
37+
"**/.editorconfig": true,
38+
"**/.eslintcache": true,
39+
"**/bower_components": true,
40+
"**/.idea": true,
41+
"**/tmp": true,
42+
"**/.git": true,
43+
"**/.svn": true,
44+
"**/.hg": true,
45+
"**/CVS": true,
46+
"**/.DS_Store": true
47+
},
48+
"files.watcherExclude": {
49+
"**/.git/objects/**": true,
50+
"**/.git/subtree-cache/**": true,
51+
"**/.vscode/**": true,
52+
"**/node_modules/**": true,
53+
"**/tmp/**": true,
54+
"**/bower_components/**": true,
55+
"**/dist/**": true,
56+
"**/yarn.lock": true
57+
},
58+
"stylelint.enable": true,
59+
"stylelint.validate": ["css", "less", "postcss", "scss", "vue", "sass"],
60+
"path-intellisense.mappings": {
61+
"@/": "${workspaceRoot}/src"
1062
},
1163
"[javascriptreact]": {
1264
"editor.defaultFormatter": "esbenp.prettier-vscode"
@@ -32,24 +84,87 @@
3284
"[markdown]": {
3385
"editor.defaultFormatter": "esbenp.prettier-vscode"
3486
},
35-
"i18n-ally.localesPaths": ["src/locales"],
87+
"editor.codeActionsOnSave": {
88+
"source.fixAll.eslint": true
89+
},
90+
"[vue]": {
91+
"editor.codeActionsOnSave": {
92+
"source.fixAll.eslint": true,
93+
"source.fixAll.stylelint": true
94+
}
95+
},
96+
"i18n-ally.localesPaths": ["src/locales/lang"],
3697
"i18n-ally.keystyle": "nested",
3798
"i18n-ally.sortKeys": true,
3899
"i18n-ally.namespace": true,
100+
"i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
39101
"i18n-ally.enabledParsers": ["ts"],
40102
"i18n-ally.sourceLanguage": "en",
41103
"i18n-ally.displayLanguage": "zh-CN",
42104
"i18n-ally.enabledFrameworks": ["vue", "react"],
43-
"god.tsconfig": "./tsconfig.json",
44-
"vue-i18n.i18nPaths": "src/locales",
105+
"cSpell.words": [
106+
"vben",
107+
"windicss",
108+
"tailwind",
109+
"browserslist",
110+
"tailwindcss",
111+
"esnext",
112+
"antv",
113+
"tinymce",
114+
"qrcode",
115+
"sider",
116+
"pinia",
117+
"sider",
118+
"nprogress",
119+
"INTLIFY",
120+
"stylelint",
121+
"esno",
122+
"vitejs",
123+
"sortablejs",
124+
"codemirror",
125+
"iconify",
126+
"commitlint",
127+
"vditor",
128+
"echarts",
129+
"cropperjs",
130+
"logicflow",
131+
"vueuse",
132+
"zxcvbn",
133+
"lintstagedrc",
134+
"brotli",
135+
"sider",
136+
"pnpm",
137+
"antd"
138+
],
139+
"vetur.format.scriptInitialIndent": true,
140+
"vetur.format.styleInitialIndent": true,
141+
"vetur.validation.script": false,
142+
"MicroPython.executeButton": [
143+
{
144+
"text": "",
145+
"tooltip": "运行",
146+
"alignment": "left",
147+
"command": "extension.executeFile",
148+
"priority": 3.5
149+
}
150+
],
151+
"MicroPython.syncButton": [
152+
{
153+
"text": "$(sync)",
154+
"tooltip": "同步",
155+
"alignment": "left",
156+
"command": "extension.execute",
157+
"priority": 4
158+
}
159+
],
160+
// 控制相关文件嵌套展示
45161
"explorer.fileNesting.enabled": true,
46162
"explorer.fileNesting.expand": false,
47163
"explorer.fileNesting.patterns": {
48164
"*.ts": "$(capture).test.ts, $(capture).test.tsx",
49165
"*.tsx": "$(capture).test.ts, $(capture).test.tsx",
50166
"*.env": "$(capture).env.*",
51-
"CHANGELOG.md": "CHANGELOG*",
52-
"package.json": "pnpm-lock.yaml,pnpm-workspace.yaml,LICENSE,.gitattributes,.gitignore,.gitpod.yml,CNAME,README*,.npmrc,.browserslistrc,vite.config.*,windi.*,tailwind.*,tsconfig.*,postcss*",
53-
".eslintrc.js": ".eslintignore,.eslintrc-*,.prettierignore,.stylelintignore,.commitlintrc.js,.prettierrc.js,.stylelint*,stylelint*,prettier.*,.editorconfig"
54-
}
167+
"package.json": "pnpm-lock.yaml,yarn.lock,LICENSE,README*,CHANGELOG*,CNAME,.gitattributes,.gitignore,prettier.config.js,stylelint.config.js,commitlint.config.js,.stylelintignore,.prettierignore,.gitpod.yml,.eslintrc.js,.eslintignore"
168+
},
169+
"terminal.integrated.scrollback": 10000
55170
}

0 commit comments

Comments
 (0)