Skip to content

VSCode

Eslint

保存时自动修正

json
{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit"
  },
  "editor.formatOnSave": true,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "vue"
  ],
  "eslint.format.enable": true,
  "eslint.codeActionsOnSave.mode": "all",
  "files.eol": "\n"
}

插件

必装:

  • Vue
  • Prisma
  • Go
  • PHP
  • Python
  • Dart
  • JavaScript and TypeScript Nightly

推荐:

  • Auto Rename Tag
  • Code Runner
  • EditorConfig
  • EOL Converter
  • ES7+ React/Redux/React-Native snippets
  • ESLint
  • Even Better TOML
  • file-tree-generator
  • Live Server
  • Markdown Preview Enhanced
  • markdownlint
  • Material Icon Theme
  • Composer
  • Nuxtr
  • Protobuf VSC