vscode相关插件及配置文件

1、插件

Auto Import import 引入自动补全

Import Cost 查看你引入的依赖模块大小

Auto Close Tag 自动补全 html 标签

Auto Rename Tag 自动重命名 html 标签

Prettier - Code formatter 代码自动格式化

One Monokai Theme vscode 主题包

stylelint stylelint

Vetur vue 开发必备

vscode-element-helper element 开发必备

2.settings.json

{

  "[vue]": {

    "editor.defaultFormatter": "esbenp.prettier-vscode"

  },

  "editor.quickSuggestions": {

    "strings": true

  },

  "workbench.colorTheme": "One Monokai",

  "editor.tabSize": 2,

  "editor.detectIndentation": false,

  "emmet.triggerExpansionOnTab": true,

  "editor.formatOnSave": true,

  "javascript.format.enable": true,

  "git.enableSmartCommit": true,

  "git.autofetch": true,

  "git.confirmSync": false,

  "[json]": {

    "editor.defaultFormatter": "esbenp.prettier-vscode"

  },

  "liveServer.settings.donotShowInfoMsg": true,

  "explorer.confirmDelete": false,

  "javascript.updateImportsOnFileMove.enabled": "always",

  "typescript.updateImportsOnFileMove.enabled": "always",

  "files.exclude": {

    "**/.idea": true

  },

  "editor.codeActionsOnSave": {

    "source.fixAll.stylelint": true,

    "source.fixAll.eslint": true

  },

  "[javascript]": {

    "editor.defaultFormatter": "esbenp.prettier-vscode"

  },

  "[jsonc]": {

    "editor.defaultFormatter": "esbenp.prettier-vscode"

  },

  "[html]": {

    "editor.defaultFormatter": "esbenp.prettier-vscode"

  },

  "editor.suggest.snippetsPreventQuickSuggestions": false,

  "prettier.htmlWhitespaceSensitivity": "ignore",

  "prettier.vueIndentScriptAndStyle": true,

  "docthis.authorName": "chuzhixin [email protected]",

  "docthis.includeAuthorTag": true,

  "docthis.includeDescriptionTag": true,

  "docthis.enableHungarianNotationEvaluation": true,

  "docthis.inferTypesFromNames": true,

  "vetur.format.defaultFormatter.html": "prettier",

  "files.autoSave": "onFocusChange",

  "path-intellisense.mappings": {

    "@": "${workspaceRoot}/src"

  },

  "files.eol": "\n",

  "window.zoomLevel": 1

}

更多插件  https://github.com/varHarrie/varharrie.github.io/issues/10

你可能感兴趣的:(vscode相关插件及配置文件)