禁止汉化!
换行
统一为LF
插件
必装:
prettier
stylelint
eslint
editor-config
推荐:
gitlens
projectmanager
spell-checker
json-to-ts
配置
"[less]": {
"editor.defaultFormatter": "stylelint.vscode-stylelint"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.accessibilitySupport": "off",
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"explorer.confirmDelete": false,
"editor.mouseWheelZoom": true,
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"workbench.editor.untitled.hint": "hidden",
"prettier.singleQuote": true,
"editor.tabSize": 2,
"eslint.format.enable": true,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.fontLigatures": false,
"prettier.semi": false,
"eslint.codeAction.showDocumentation": {
"enable": true
},
"terminal.external.linuxExec": "",
"terminal.explorerKind": "external",
"terminal.external.osxExec": "applications/hyper",
"window.zoomLevel": 2,
// emmet配置
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"vue-html": "html"
},
// "emmet.showSuggestionsAsSnippets": true,
"emmet.triggerExpansionOnTab": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": [
"source.sortImports",
"source.organizeImports",
"source.fixAll.eslint",
"source.fixAll.stylelint",
"source.fixAll.sortJSON"
"addMissingImports"
],
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"vue",
"typescript",
"typescriptreact"
],
"files.trimTrailingWhitespace": true,
"git.autofetch": true,
"terminal.integrated.defaultProfile.windows": "Git Bash",
// 类似 webstorm 的提示,可以自行按需开启
"typescript.inlayHints.parameterTypes.enabled": true