DEV Community

Cover image for My VS Code setup
Jatin Sharma
Jatin Sharma

Posted on • Originally published at j471n.in

My VS Code setup

In this article, I'll be sharing my VS Code Setup with you. It includes the theme and Icons that use and also Extensions (this is very important).

🎨Theme

I use Andromeda as my primary theme for my vs code

andromeda-screenshot

🪟Icons

For Icons, I sometimes switch between Material Icon Theme and Material Theme Icons.

Material Icon Theme

Material Icon Theme

Material Theme Icons

⚒️Extensions

Now the best part, There are a lot of extensions I mentioned only my favorite or the one that I use mostly every day.

Auto Rename Tag

Automatically rename paired HTML/XML tag, same as Visual Studio IDE does.

Download: Auto Rename Tag

Bracket Pair Colorization Toggler

A VS Code extension that gives you a simple command to quickly toggle the global “Bracket Pair Colorization”

Download: Bracket Pair Colorization Toggler

C/C++

The C/C++ extension adds language support for C/C++ to Visual Studio Code, including editing (IntelliSense) and debugging features.

Download: C/C++

Code Runner

Run code snippet or code file for multiple languages

Download: Code Runner

Usage

Code Spell Checker

A basic spell checker that works well with code and documents.

The goal of this spell checker is to help catch common spelling errors while keeping the number of false positives low.

Download: Code Spell Checker

Example

DotENV

VSCode .env syntax highlighting.

Download: DotENV

Example

Error Lens

ErrorLens turbo-charges language diagnostic features by making diagnostics stand out more prominently, highlighting the entire line wherever a diagnostic is generated by the language and also prints the message inline.

Download: Error Lens

Demo image

ES7+ React/Redux/React-Native snippets

JavaScript and React/Redux snippets in ES7+ with Babel plugin features for VS Code

Download: ES7+ React/Redux/React-Native snippets

ESLint

The extension uses the ESLint library installed in the opened workspace folder. If the folder doesn't provide one the extension looks for a global install version. If you haven't installed ESLint either locally or globally do so by running npm install eslint in the workspace folder for a local install or npm install -g eslint for a global install.

Download: ESLint

Git Graph

View a Git Graph of your repository, and easily perform Git actions from the graph. Configurable to look the way you want!

Download: Git Graph

Recording of Git Graph

GitLens

GitLens supercharges Git inside VS Code and unlocks untapped knowledge within each repository. It helps you to visualize code authorship at a glance via Git blame annotations and CodeLens, seamlessly navigate and explore Git repositories, gain valuable insights via rich visualizations and powerful comparison commands, and so much more.

Download: GitLens

HTML Boilerplate

This extension provides the standard HTML boilerplate code used in all web applications.

Download: HTML Boilerplate

alt text

Import Cost

This extension will display inline in the editor the size of the imported package. The extension utilizes webpack in order to detect the imported size.

Download: Import Cost

Example Image

Live Server

It'll enable live changes without saving files.

Download: Live Server

Live Server Demo VSCode

Markdown All in One

All you need for Markdown (keyboard shortcuts, table of contents, auto preview and more).

Note: VS Code has basic Markdown support out-of-the-box (e.g, Markdown preview), please see the official documentation for more information.

Download: Markdown All in One

toggle bold gif

Markdown Preview Enhanced

It shows the enhanced preview of your markdown content.

Download: Markdown Preview Enhanced

intro

Paste JSON as Code

Copy JSON, paste as Go, TypeScript, C#, C++ and more.

Download - Paste JSON as Code

Image description

Prettier

Code formatter using prettier

Download - Prettier

Prettier

Python

IntelliSense (Pylance), Linting, Debugging (multi-threaded, remote), Jupyter Notebooks, code formatting, refactoring, unit tests, and more.

Download - Python

Python

Settings Sync

Synchronize Settings, Snippets, Themes, File Icons, Launch, Keybindings, Workspaces and Extensions Across Multiple Machines Using GitHub Gist.

Download - Settings Sync

Settings Sync

Tailwind CSS IntelliSense

Intelligent Tailwind CSS tooling for VS Code

Download - Tailwind CSS IntelliSense

Tailwind CSS IntelliSense

TODO Highlight

Highlight TODO, FIXME and other annotations within your code.

Sometimes you forget to review the TODOs you've added while coding before you publish the code to production. So I've been wanting an extension for a long time that highlights them and reminds me that there are notes or things not done yet.

Hope this extension helps you as well.

Download - TODO Highlight

TODO Highlight

Turbo Console Log

Automating the process of writing meaningful log messages.

Download - Turbo Console Log

Turbo Console Log

Tabnine AI

Tabnine is an AI code assistant that makes you a better developer. Tabnine will increase your development velocity with real-time code completions in all the most popular coding languages and IDEs.

Download - Tabnine AI

Tabnine AI

⚙️Settings

The following JSON code shows my vs code setting:

// user/settings.json
{
  "files.autoSave": "afterDelay",
  "editor.mouseWheelZoom": true,
  "code-runner.clearPreviousOutput": true,
  "code-runner.ignoreSelection": true,
  "code-runner.runInTerminal": true,
  "code-runner.saveAllFilesBeforeRun": true,
  "code-runner.saveFileBeforeRun": true,
  "editor.wordWrap": "on",
  "C_Cpp.updateChannel": "Insiders",
  "editor.suggestSelection": "first",
  "python.jediEnabled": false,
  "editor.fontSize": 17,
  "emmet.includeLanguages": {
    "javascript": "javascriptreact"
  },
  "editor.minimap.size": "fit",
  "editor.fontFamily": "Consolas, DejaVu Sans Mono, monospace",
  "editor.fontLigatures": false,
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "python.formatting.provider": "yapf",
  "[css]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "git.autofetch": true,
  "git.enableSmartCommit": true,
  "html-css-class-completion.enableEmmetSupport": true,
  "editor.formatOnPaste": true,
  "liveServer.settings.donotShowInfoMsg": true,
  "[python]": {
    "editor.defaultFormatter": "ms-python.python"
  },
  "diffEditor.ignoreTrimWhitespace": false,
  "[json]": {
    "editor.defaultFormatter": "vscode.json-language-features"
  },
  "[c]": {
    "editor.defaultFormatter": "ms-vscode.cpptools"
  },
  "editor.fontWeight": "300",
  "editor.fastScrollSensitivity": 6,
  "explorer.confirmDragAndDrop": false,
  "vsicons.dontShowNewVersionMessage": true,
  "workbench.iconTheme": "material-icon-theme",
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.renderWhitespace": "none",
  "workbench.startupEditor": "newUntitledFile",
  "liveServer.settings.multiRootWorkspaceName": "",
  "liveServer.settings.port": 5000,
  "liveServer.settings.donotVerifyTags": true,
  "editor.formatOnSave": true,
  "html.format.indentInnerHtml": true,
  "editor.formatOnType": true,
  "printcode.tabSize": 4,
  "terminal.integrated.confirmOnExit": "hasChildProcesses",
  "terminal.integrated.cursorBlinking": true,
  "terminal.integrated.rightClickBehavior": "default",
  "tailwindCSS.emmetCompletions": true,
  "sync.gist": "527c3e29660c53c3f17c32260188d66d",
  "gitlens.hovers.currentLine.over": "line",
  "terminal.integrated.profiles.windows": {
    "PowerShell": {
      "source": "PowerShell",
      "icon": "terminal-powershell"
    },
    "Command Prompt": {
      "path": [
        "${env:windir}\\Sysnative\\cmd.exe",
        "${env:windir}\\System32\\cmd.exe"
      ],
      "args": [],
      "icon": "terminal-cmd"
    },
    "Git Bash": {
      "source": "Git Bash"
    },
    "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe (migrated)": {
      "path": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
      "args": []
    },
    "Windows PowerShell": {
      "path": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
    },
    "Ubuntu (WSL)": {
      "path": "C:\\WINDOWS\\System32\\wsl.exe",
      "args": [
        "-d",
        "Ubuntu"
      ]
    }
  },
  "javascript.updateImportsOnFileMove.enabled": "always",
  "[dotenv]": {
    "editor.defaultFormatter": "foxundermoon.shell-format"
  },
  "editor.tabSize": 2,
  "cSpell.customDictionaries": {
    "custom-dictionary-user": {
      "name": "custom-dictionary-user",
      "path": "~/.cspell/custom-dictionary-user.txt",
      "addWords": true,
      "scope": "user"
    }
  },
  "window.restoreFullscreen": true,
  "tabnine.experimentalAutoImports": true,
  "files.defaultLanguage": "${activeEditorLanguage}",
  "bracket-pair-colorizer-2.depreciation-notice": false,
  "workbench.editor.wrapTabs": true,
  "[markdown]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[ignore]": {
    "editor.defaultFormatter": "foxundermoon.shell-format"
  },
  "terminal.integrated.fontFamily": "courier new",
  "terminal.integrated.defaultProfile.windows": "pwsh.exe -nologo",
  "terminal.integrated.shellIntegration.enabled": true,
  "terminal.integrated.shellIntegration.showWelcome": false,
  "editor.accessibilitySupport": "off",
  "editor.bracketPairColorization.enabled": true,
  "todohighlight.isEnable": true,
  "terminal.integrated.shellIntegration.history": 1000,
  "turboConsoleLog.insertEnclosingClass": false,
  "turboConsoleLog.insertEnclosingFunction": false,
  "files.autoSaveDelay": 500,
  "liveServer.settings.CustomBrowser": "chrome",
  "liveServer.settings.host": "localhost",
  "liveServer.settings.fullReload": true,
  "workbench.editor.enablePreview": false,
  "workbench.colorTheme": "Andromeda Bordered"
}
Enter fullscreen mode Exit fullscreen mode

Wrapping up

This is all. I hope you find this useful. If you do, then don't forget to give ❤️ and Bookmark 🏷️ for later use and if you have any questions or feedback then don't hesitate to drop them in the comments below. I'll see in the next one.

Connect with me

Latest comments (57)

Collapse
 
ianonjuguna profile image
Iano Njuguna

Error Lens caught my eye

Collapse
 
j471n profile image
Jatin Sharma

It's one of the best.

Collapse
 
arambdev profile image
Abdur-Rahman

Very helpful!! I didn't know there was a separate Settings Sync extension. This is very helpful because it removes the hassle of signing in to GitHub or Microsoft.

Collapse
 
madams1972 profile image
Friday Knight

OMFG!!!
You just solved one of the biggest problems I have had for years. I could never get Auto Save to work and I went through a six month bootcamp and the instructors never once tried to help me correct the issue. You corrected it by posting the #json file I just copied and pasted your code and it fixed my issue thanks

Collapse
 
j471n profile image
Jatin Sharma

I am really glad that your issue has been fixed. This pleasure is on another level.

Collapse
 
konhi profile image
Jan Szymański

Great post! I especially liked:

  • Auto Rename Tag
  • Code Spell Checker
  • Error Lens
  • Git Lens
  • Turbo Console Log
Collapse
 
j471n profile image
Jatin Sharma

Thank mate. ☺️

Collapse
 
samuelchidozie profile image
C.Sam

Lovely

Collapse
 
disorrder profile image
Disorder AA

Settings Sync doesn't matter any more, since VSCode has its own sync out of the box.
Github CoPilot > Tab9
Import cost is good idea, but it really slow down the editor each time I have to import a new thing.

Collapse
 
itsahsanmangal profile image
Ahsan Mangal 👨🏻‍💻

I enjoyed reading your article and seeing your VS Code setup. I learned about some new extensions and themes that I might try out myself. However, I think you could improve your article by adding more details and examples on how you use some of the extensions and settings in your daily workflow. For example, how do you use Live Server to preview your web pages? How do you use Prettier to format your code? How do you use Bracket Pair Colorizer to match brackets? It would also be nice if you could compare and contrast some of the extensions and themes you use with other popular ones and explain why you prefer them. Overall, a good article that shows your passion for web development.

Collapse
 
j471n profile image
Jatin Sharma

I am really glad that you enjoyed my article. This article's purpose was just to share my setup. For explaining the workflow of each of the extension can be discussed in separate article like how they work and all.

Collapse
 
nidhiparab profile image
Nidhi

Markdown Preview Enhanced is a great addition for my collection!

Collapse
 
j471n profile image
Jatin Sharma

Yeh, It helped me a lot when I am working with Markdown.

Collapse
 
sylyac2000 profile image
Sylyac2000

Thank you very much

Collapse
 
j471n profile image
Jatin Sharma

My pleasure 🙂

Collapse
 
maqi1520 profile image
Alex Ma

Thank you very much, I also installed many of the same extensions。
非常感谢给我灵感,录制了一个视频
bilibili.com/video/BV1P24y1s7AQ

Collapse
 
j471n profile image
Jatin Sharma

That's amazing..

Collapse
 
akashgosiya profile image
Akash Gosiya

Amazing ! Very Useful

Collapse
 
j471n profile image
Jatin Sharma

Thanks Akash. ☺️

Collapse
 
codeofrelevancy profile image
Code of Relevancy

Thank you for sharing this..

Collapse
 
j471n profile image
Jatin Sharma

It's my pleasure ☺️

Collapse
 
mamadalisilavi profile image
mamadalisilavi

tancks!

Collapse
 
mahlilmahee profile image
Mahlil Mahee

awesome bro

Collapse
 
j471n profile image
Jatin Sharma

Thanks.

Collapse
 
banhsbao profile image
BanhsBao

Very helpful!! Thanks

Collapse
 
j471n profile image
Jatin Sharma

I am glad you find it helpful 😊