VSCode设置秘籍,丝滑开发体验

277 阅读1分钟
{
  "editor.suggestSelection": "first",
  "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
  "remote.SSH.showLoginTerminal": true,
  "[typescriptreact]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
  },
  "[typescript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
  },
  "editor.fontSize": 9,
  "files.autoGuessEncoding": true,
  "workbench.list.smoothScrolling": true,
  "editor.cursorSmoothCaretAnimation": "on",
  "editor.smoothScrolling": true,
  "editor.cursorBlinking": "smooth",
  "editor.mouseWheelZoom": true,
  "editor.formatOnPaste": true,
  "editor.formatOnType": true,
  "editor.formatOnSave": true,
  "editor.wordWrap": "on",
  "editor.guides.bracketPairs": true,
  //"editor.bracketPairColorization.enabled": true, (此设置vscode在较新版本已默认开启)
  "editor.suggest.snippetsPreventQuickSuggestions": false,
  "editor.acceptSuggestionOnEnter": "smart",
  "window.dialogStyle": "custom",
  "debug.showBreakpointsInOverviewRuler": true,
  "explorer.confirmDelete": false,
  "prettier.useEditorConfig": false,
  "eslint.format.enable": true, // 启用ESLint作为已验证文件的格式化程序
  "workbench.colorTheme": "GitHub Dark",
  // 保存时候按eslint规则进行修复
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "eslint.validate": ["typescript", "javascript", "vue"],
  "eslint.codeActionsOnSave.rules": null,
  "eslint.options": {},
  "[javascript]": {
    "editor.defaultFormatter": "dbaeumer.vscode-eslint"
  },
  "typescript.tsserver.log": "verbose",
  "eslint.lintTask.enable": true,
  "vs-code-prettier-eslint.prettierLast": true,
  "workbench.iconTheme": "vscode-great-icons",
  "terminal.integrated.fontSize": 9,
  "diffEditor.ignoreTrimWhitespace": false,
  "files.autoSave": "onFocusChange"
}