DEV Community

loading...

Visual Studio Code set up to improve developer productivity

Yuva
Eternally optimistic learner with some serious FOMO in life
・2 min read

VS code has become the go to code editor lately. I configured VSCode to write code, write articles, access database, do code reviews and communicate with the team. The goal is to keep the movement from one app to the other to a minimum.

I am sharing my configuration here and I hope to learn more from others.

Extensions

  1. Git lens - Pick a file in source control and view every version and changes in each version directly in the editor.
  2. Docker - Start, stop containers that run your code directly from editor.
  3. Git PR - Ever wanted to click through the code that you are reviewing? May be wanted to see all the references to a method in the code? Now, you can browse the code being reviewed in the editor with git PR.
  4. Team Chat - Bring slack messages to vscode so you don't have to see another screen or app.
  5. Markdown All in One - Write your documents or articles in markdown directly in the code editor.
  6. Paste Image -- Paste images directly to markdown files.
  7. PostgresSQL -- Create connections to dev/uat/prod databases and execute any SQL command.
  8. Visual Studio IntelliCode - -Autocomplete for Python/JS/TS/Java code.
  9. SonarLint -- Best multi language linter.
  10. Code Spell Checker - Tells you to use meaningful words in code and also useful in spellchecking the documents you write.

settings.json

{
    "workbench.colorTheme": "Solarized Dark",
    "workbench.sideBar.location": "left",
    "workbench.settings.enableNaturalLanguageSearch": false,
    "workbench.statusBar.feedback.visible": false,
    "window.zoomLevel": 1,
    "explorer.confirmDragAndDrop": false,
    "explorer.sortOrder": "filesFirst",
    "explorer.openEditors.visible": 0,
    "breadcrumbs.enabled": true,
    "files.autoSave": "afterDelay",
    "files.insertFinalNewline": true,
    "files.trimTrailingWhitespace": true,
    "editor.suggestSelection": "first",
    "editor.minimap.enabled": false,
    "editor.cursorSmoothCaretAnimation": true,
    "editor.formatOnPaste": true,
    "editor.formatOnSave": true,
    "editor.cursorBlinking": "phase",
    "editor.smoothScrolling": true,
    "editor.renderWhitespace": "all",
    "git.autofetch": true,
    "git.postCommitCommand": "push",
    "git.alwaysShowStagedChangesResourceGroup": true,
    "gitlens.codeLens.authors.enabled": false,
        "gitlens.advanced.messages": {
        "suppressFileNotUnderSourceControlWarning": true
    },
    "gitlens.views.repositories.files.layout": "list",
    "cSpell.allowCompoundWords": true,
    "cSpell.userWords": [
        "oauth",
        "postgres",
        "repo",
        "venmo"
    ],
    "cSpell.enabledLanguageIds": [
        "markdown",
        "plaintext",
        "text"
    ]
    "telemetry.enableCrashReporter": false,
    "telemetry.enableTelemetry": false,
    "githubPullRequests.telemetry.enabled": false,
    "eslint.autoFixOnSave": true,
    "javascript.updateImportsOnFileMove.enabled": "always",
}

Discussion (0)