目录
-
- 1. .vscode项目配置
- 2. vscode本地配置
1. .vscode项目配置
{
"typescript.tsdk": "node_modules/typescript/lib",
"prettier.enable": false,
"god.tsconfig": "./tsconfig.json",
"[css]": {},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[less]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.stylelint": true
}
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"eslint.run": "onType",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.stylelint": true
},
"editor.formatOnSave": true,
"stylelint.enable": true,
"stylelint.validate": ["css", "less", "vue", "html"],
"i18n-ally.localesPaths": ["src/locales"],
"i18n-ally.keystyle": "nested",
"i18n-ally.sortKeys": true,
"i18n-ally.namespace": false,
"i18n-ally.enabledParsers": ["ts"],
"i18n-ally.sourceLanguage": "en",
"i18n-ally.displayLanguage": "zh-CN",
"i18n-ally.enabledFrameworks": ["vue", "react"],
"volar.inlayHints.eventArgumentInInlineHandlers": false
}
2. vscode本地配置
{
"workbench.iconTheme": "vscode-icons",
"editor.wordWrap": "on",
"editor.lineHeight": 0,
"editor.fontWeight": "normal",
"editor.fontFamily": "'Fira Code'",
"editor.fontLigatures": true,
"html.format.wrapAttributes": "aligned-multiple",
"files.eol": "\n",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/target": true,
"**/logs": true
},
"files.exclude": {
},
"editor.minimap.enabled": true,
"files.associations": {
"*.wxss": "css",
"*.wxml": "wxml",
"*.cjson": "jsonc",
"*.wxs": "javascript",
"*.json": "jsonc",
"*.xtpl": "html",
"*.tsx": "typescript"
},
"emmet.includeLanguages": {
"wxml": "html"
},
"minapp-vscode.disableAutoConfig": true,
"workbench.startupEditor": "newUntitledFile",
"git.autofetch": false,
"editor.accessibilityPageSize": 12,
"sync.gist": "68836bf9f631400aea55045d66621ec6",
"emmet.triggerExpansionOnTab": true,
"todo-tree.tree.showScanModeButton": false,
"cSpell.userWords": ["hhserp"],
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"todo-tree.general.tags": [
"BUG",
"HACK",
"FIXME",
"TODO",
"XXX",
"[ ]",
"[x]"
],
"todo-tree.regex.regex": "(//|#|