DEV Community

Cover image for My Visual Studio Code Setup
Ankit Sinha
Ankit Sinha

Posted on

My Visual Studio Code Setup

I love the text editor setup I've been using for the past year and a half, so I want to show off my setup! Visual Studio Code has far surpassed my experiences with Spyder, Sublime Text, and Idle (the built-in Python editor) which I used for the years before it.
I thought I would do a quick write up on my setup and the extensions I love!
Today I'm going to share my favorite Code Editor settings, using for my web development. And I'm going to start with my Code Editor looks. After all, look matters.

Theme
My most used VS Code theme is Material Theme, currently, I'm using this.

Alt Text

There are many color themes available in this theme,
I usually go for a dark theme, so my favorites are :

  • Material Theme Palenight High Contrast
    Alt Text

  • Material Theme Ocean High Contrast
    Alt Text

Emmet
I am incredibly reliant on Emmet, so I love that it is built in for VS Code. I also have it set up to work in more than just my html files:

// in settings.json
"emmet.includeLanguages": {
  "html": "html",
  "erb": "erb",
  "javascript": "javascriptreact",
  "vue": "html",
  "ejs": "html"
},
Enter fullscreen mode Exit fullscreen mode

Alt Text

Icons
File Icons enhance our VS Code Editor looks. Mainly it helps us to differentiate between different files & folders by their given icons. For my VS Code, I use two file icons:-

Alt Text

Extensions I use

I have a lot of language and framework-specific extensions built-in, which are boring and very dependent on the developer, so I will skip over those in order to discuss some of my favorite all-purpose extensions.

Automatically rename paired HTML/XML tag, also works in JSX.

Add an entry into auto-rename-tag.activationOnLanguage, in your settings.json file to set the languages that the extension will be activated. By default, it is ["*"] and will be activated for all languages

  "auto-rename-tag.activationOnLanguage": ["html", "xml", "php", "javascript"]
Enter fullscreen mode Exit fullscreen mode

Alt Text

This extension allows matching brackets to be identified with colors. The user can define which tokens to match, and which colors to use.

Alt Text

This extension allows you to send HTTP request and view the response in Visual Studio Code directly.

Alt Text

This extension styles css/web colors, found in your document

Alt Text

Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.

Set below property value to be true or add this property into your settings.json file to format code on save.

  "editor.formatOnSave": true
Enter fullscreen mode Exit fullscreen mode

Alt Text

Conclusion
I am really happy with my setup -- I have no complaints! Feel free to DM me any questions about my setup, and also send me your favorite tips and tricks!

Latest comments (0)