Skip to content

Instantly share code, notes, and snippets.

@doi-t
Last active January 10, 2021 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doi-t/f769ed52d4bb240ca2d67a2587a1581d to your computer and use it in GitHub Desktop.
Save doi-t/f769ed52d4bb240ca2d67a2587a1581d to your computer and use it in GitHub Desktop.
wip: My VS Code Settings

Update settings.json

{
  "editor.formatOnSave": true,
  "editor.wordWrap": "on",
  "editor.insertSpaces": true,
  "editor.detectIndentation": false,
  "editor.minimap.enabled": false,
  "files.trimTrailingWhitespace": true,
  "go.useLanguageServer": true,
  "vim.useSystemClipboard": true,
  "editor.tabSize": 2, // default tab Size
  // Ref. https://github.com/prettier/prettier-vscode#format-on-save
  "eslint.lintTask.enable": true,
  "eslint.autoFixOnSave": true, // NOTE: Don't enable js framework's linter. Let VS Code fix codes instead.
  "eslint.lintTask.options": " --ext .js,.vue --ignore-path .gitignore . --fix",
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    { "language": "typescript", "autoFix": true },
    { "language": "typescriptreact", "autoFix": true },
    { "language": "vue", "autoFix": true }
  ],
  "[javascript]": {
    "editor.tabSize": 2,
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[json]": {
    "editor.tabSize": 2
  },
  "terminal.integrated.rendererType": "dom",
  "window.zoomLevel": 0,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "editor.suggestSelection": "first",
  "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
  "editor.formatOnPaste": false,
  "editor.formatOnType": false
}
yarn global add eslint
yarn global add prettier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment