Skip to content

Instantly share code, notes, and snippets.

@saminitz
Last active March 20, 2024 10:23
Show Gist options
  • Save saminitz/415291284555b7f0b087b4c2177bcc33 to your computer and use it in GitHub Desktop.
Save saminitz/415291284555b7f0b087b4c2177bcc33 to your computer and use it in GitHub Desktop.
Personal VSCode extensions and settings

by Samuel Nitzsche

General information

These are my personal preferences for extensions and settings. If you don't like some of them, just don't use them and if you just want only specific extensions and settings you can find them below :)

Under some extensions are code blocks. These are suggested settings and have to be copied into the settings.json of VSCode if you would like to use them. Also all extensions are listed with their id.

This can be done by pressing CMD + SHIFT + P and then search for Preferences: Open User Settings (JSON)

All extensions and settings combined

Below i will list all settings combined and the extensions as install command

Extensions (terminal command)

code --install-extension vscjava.vscode-java-pack \
     --install-extension vmware.vscode-boot-dev-pack \
     --install-extension streetsidesoftware.code-spell-checker \
     --install-extension streetsidesoftware.code-spell-checker-german \
     --install-extension dbaeumer.vscode-eslint \
     --install-extension SonarSource.sonarlint-vscode \
     --install-extension usernamehw.errorlens \
     --install-extension mhutchie.git-graph \
     --install-extension codezombiech.gitignore \
     --install-extension eamodio.gitlens \
     --install-extension codeandstuff.package-json-upgrade \
     --install-extension esbenp.prettier-vscode \
     --install-extension tomoki1207.pdf \
     --install-extension PKief.material-icon-theme

Settings

  "[java]": {
    "editor.tabSize": 4,
    "editor.defaultFormatter": "redhat.java"
  },
  "cSpell.language": "en,de-DE",
  "debug.autoExpandLazyVariables": true,
  "editor.codeActionsOnSave": {
    "source.addMissingImports": true,
    "source.organizeImports": true,
    "source.removeUnusedImports": true
  },
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.detectIndentation": false,
  "editor.formatOnSave": true,
  "editor.formatOnSaveMode": "file",
  "editor.hover.delay": 1000,
  "editor.minimap.enabled": false,
  "editor.tabSize": 2,
  "extensions.autoCheckUpdates": true,
  "extensions.autoUpdate": true,
  "files.autoSave": "onFocusChange",
  "git.autofetch": true,
  "gitlens.hovers.currentLine.enabled": false,
  "gitlens.plusFeatures.enabled": false,
  "java.compile.nullAnalysis.mode": "disabled",
  "java.configuration.updateBuildConfiguration": "automatic",
  "java.eclipse.downloadSources": true,
  "java.inlayHints.parameterNames.enabled": "none",
  "java.maven.downloadSources": true,
  "prettier.printWidth": 120,
  "prettier.singleQuote": true,
  "workbench.colorTheme": "Default Dark+",
  "workbench.editor.wrapTabs": true

Single Extensions with Settings

Java Essentials

  • vscjava.vscode-java-pack
    "[java]": {
      "editor.tabSize": 4,
      "editor.defaultFormatter": "redhat.java"
    },
    "debug.autoExpandLazyVariables": true,
    "java.compile.nullAnalysis.mode": "disabled",
    "java.configuration.updateBuildConfiguration": "automatic",
    "java.eclipse.downloadSources": true,
    "java.inlayHints.parameterNames.enabled": "none",
    "java.maven.downloadSources": true,
  • vmware.vscode-boot-dev-pack

Language Spell Checker

  • streetsidesoftware.code-spell-checker
  • streetsidesoftware.code-spell-checker-german
    "cSpell.language": "en,de-DE",

Linter

  • dbaeumer.vscode-eslint
  • SonarSource.sonarlint-vscode

Useful tools

  • usernamehw.errorlens

  • mhutchie.git-graph

  • codezombiech.gitignore

  • eamodio.gitlens

    "gitlens.hovers.currentLine.enabled": false,
    "gitlens.plusFeatures.enabled": false,
  • codeandstuff.package-json-upgrade

  • esbenp.prettier-vscode

    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "prettier.printWidth": 120,
    "prettier.singleQuote": true,
  • tomoki1207.pdf

My recommended theme

  • PKief.material-icon-theme

Miscellaneous settings

  "editor.codeActionsOnSave": {
    "source.addMissingImports": true,
    "source.organizeImports": true,
    "source.removeUnusedImports": true
  },
  "editor.detectIndentation": false,
  "editor.formatOnSave": true,
  "editor.formatOnSaveMode": "file",
  "editor.hover.delay": 1000,
  "editor.minimap.enabled": false,
  "editor.tabSize": 2,
  "extensions.autoCheckUpdates": true,
  "extensions.autoUpdate": true,
  "files.autoSave": "onFocusChange",
  "git.autofetch": true,
  "workbench.colorTheme": "Default Dark+",
  "workbench.editor.wrapTabs": true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment