How to Set Up VS Code Like a Pro in Just 5 Minutes
A beginnerās guide

When youāre a #CodeNewbie starting out on #100DaysOfCode, your Visual Studio Code setup probably leaves a lot to be desired. Hereās how to go from zero to professional web developer by installing and configuring some crucial extensions, themes, and add-ons.
What separates a professional web developerās VS Code from a brand-new installation is the use of extensions, especially code formatters and linters that automatically detect and fix problems in your code.
Using code formatters (typically Prettier) and linters (usually ESLint) tend to be mandatory when contributing to open-source projects online. But theyāre generally awesome to have even if you never plan to work on open-source.
Additionally, a nice theme makes VS Code easier to use, and it makes it feel like your own personal version. Along with a theme, you can add file icons thatāll let you see what type of files youāre working with at just a glance.
But you wonāt really seem like a pro until you start using font ligatures that turn common code symbols (like =>
and !==
) into human-readable versions. Plus, a nice programming font is just so easy on the eyes!
In this short tutorial, youāll take a brand-new VS Code installation and turn it into a super-powered professional setup in about five minutes.
1. Install Extensions in VS Code
Iām going to recommend six must-have extensions, with another seven optional ones. Of course, no extension is really mandatory ā itās your VS Code after all ā but everyone should use a code formatter, linter, and theme.
The optional extensions are more for your quality of life. Iād suggest you install all 13 extensions at once since theyāre free and quick. You can always disable or uninstall them afterward with just a few clicks inside of VS Code.
First, Iāll list the extensions in both categories, and then Iāll explain the purpose of each one ā optional info for the curious folk.
How to install a VS Code extension
There are two ways to install extensions for VS Code, either using the online Visual Studio Marketplace or its equivalent inside VS Code.
From the web: Click on the link to the extension in the text below to open it up in the Visual Studio Marketplace; then click the āInstallā button. Assuming you already have VS Code installed, click āContinue.ā Your browser will then try to open a vscode
link. Choose āVisual Studio Codeā from the list, and then check āRemember my choice for vscode linksā and click āOpen link.ā
From VSCode: Alternatively, look up the extension by name inside of VS Code on your computer by clicking the extensions icon on the left-hand activity bar ā it looks like blocks getting stacked on top of each other. Search for each extension by name, clicking āInstallā for each one.
The recommended extensions below appear in alphabetical order.
Mandatory extensions
ESLint, HTMLHint, Prettier ā code formatter, stylelint, vscode-icons, and your choice of theme. You only need to install one VS Code theme; I suggest Monokai Vibrant, One Monokai Theme, or Shades of Purple.
Optional extensions
Document This, indent-rainbow, Live Server, Rainbow Brackets, Rainbow Highlighter, Rainbow Tags, and vscode-pigments.
Description of each recommended VS Code extension
If you just want to get set up, and you donāt particularly care about what you just installed, then scroll on past this section as fast as you can! šš§Øš„
š½ Mandatory extensions š½
- ESLint
ESLint is a code linter for JavaScript and TypeScript thatāll catch many bugs as you write code, instead of when you run code. Itās necessary to contribute to many open-source projects and real-life workplaces. - HTMLHint
HTMLHint is a code linter for HTML that catches a lot of errors, especially the kinds that brand-new web developers tend to make. - Prettier ā code formatter
Prettier automatically formats your code, including indentation, every time you save. By using the same Prettier configuration file with your teammates, youāre sure to have the exact same formatting. That means your Git repositories wonāt have meaningless formatting changes. - stylelint
stylelint is a popular linter for CSS. Linting, also called static-code analysis, is a type of automated software testing as you write code. - vscode-icons
vscode-icons is a package of file icons that show up inside of VS Code and make it much easier to differentiate the file types youāre working with.
š½ VSCode themes š½
- Monokai Vibrant
Monokai Vibrant reminds me of 8-bit graphics and brightly colored cartoons. Itās my preferred theme for VS Code. - One Monokai Theme
One Monokai Theme is easy on the eyes. There are many offshoots of the Monokai theme, including a paid version called Monokai Pro. - Shades of Purple
Shades of Purple by Ahmad Awais ā”ļø is a great change of pace from other themes, as it showcases the color purple in a beautiful way.
š½ Optional extensions š½
- Document This
Document This is a useful extension for creating JSDoc-style documentation quickly, if youāre into that kind of thing. - indent-rainbow
indent-rainbow makes following code indentation a million times clearer by giving each indent column its own rainbow color. - Live Server
Live Server is a popular extension that lets you launch a development server from inside VS Code; itās useful for prototyping HTML and CSS. - Rainbow Brackets
Rainbow Brackets colorizes all of your bracket({[]})
pairs to help you match opening and closing braces. I find it super useful! - Rainbow Highlighter
Rainbow Highlighter lets you highlight multiple variable names at the same time with rainbow boxes, a useful feature for searching. - Rainbow Tags
Rainbow Tags is like Rainbow Brackets, except itās used for HTML tags. It even works on React.jsx
files if you turn on an optional setting. - vscode-pigments
vscode-pigments makes reading color codes in HTML and CSS files just a little bit easier by highlighting color codes in their actual color.
2. Edit “settings.json“
in VS Code:
Once youāve installed all of the extensions, you need to configure them for use. That can be a real pain, especially with setting up Prettier.
Thankfully, you can import someone elseās VS Code settings through something called the settings.json
file. Hereās how to do it:
- Open up the VS Code command palette (using the keyboard shortcut
Ctrl+Shift+P
on Windows orCmd+Shift+P
on Mac). - Type āsettings JSONā into the command palette.
- Click the top item, āPreferences: Open Settings (JSON).ā
- Replace your
settings.json
file with my file below.
My recommended “settings.json“
file
To copy-paste my settings.json
file, click āview raw codeā to open the file in your browser as a GitHub gist; youāll be able to copy the text from there.

Iād also recommend turning on settings sync in VS Code to back up your settings.json
file now, though thatās entirely optional and up to you.
How to activate a VS Code theme
In my settings.json
file above, Iām using the Monokai Vibrant theme. If youād like to use something else, you could edit the settings.json
file, but Iād recommend just switching to your theme manually. Hereās how to do that:
- Click the theme (or the gear icon next to it) in the extensions list.
- Click āSet Color Theme.ā
- A drop-down menu will appear that says āSelect Color Themeā; click on the name of your theme, as shown in this screenshot:

The new theme will activated and saved in your settings.json
file.
Explanation of VS Code āsettings.jsonā
configuration
Again, if you just want to start using VS Code, and you donāt care to learn obscure VS Code settings, then please scroll on past this section! š š»š„
Note: The following settings configure VS Code to automatically format your files whenever you save. That means you can just hit Ctrl+S
(or Cmd+S
on Mac) to format your code. Prettier will work on all your files, not just files in projects that have a configuration file (called .prettierrc
) in them. Youāll be using the Prettier default preference of using 2 spaces to indent your lines. Finally, your files will autosave and format whenever you change focus.

The below settings show ESLintās current status and turn HTMLHint on.

The following settings set up your font. Later, Iāll explain installing the free font Fira Code, which features cool programming ligatures. But if you donāt install that font, youāll just use the VS Code default of Consolas. If you want a font size larger or smaller than 20pt, you can change the setting here.

The setting below turns on word wrap for your word-wrap column setting (80 characters by default). I find it helps make code more readable.

The following settings turn on your theme and file icons.

The setting below enables the Rainbow Tags extension in all files, not just HTML files. That means itāll work in Reactās .jsx
and other filetypes.

The following setting enables the use of the Tab
key to expand the handy Emmet text snippets for HTML and CSS that are built into VS Code.

VS Code has awesome TypeScript-powered type checking built-in. You can use it with any JavaScript file by adding //@ts-check
to the top line of the file. The following setting is the same as doing that for all of your files. With this extension on, you can disable it on a per-file basis with //@ts-ignore
.

š“ Wow, bored yet? Thankfully, youāre actually all set up with VS Code already if you used my exact settings.json
file. I hope you like it! š
The last part of the article is optional.
Iāll talk about configuring Prettier, installing a cool font with font ligatures, and setting up a better terminal inside of VS Code (for Windows users).
Use Prettier to Remove Semicolons (Optional but Recommended):
Iām an advocate for turning off semicolons when programming in JavaScript. Coming from Ruby, which doesnāt use semicolons, I find them unnecessary. Thankfully, whether or not you care to use semicolons, Prettier will automatically add or remove them for you on every line ā no sweat.
In the above settings.json
file, I set a global Prettier setting: "prettier.semi": false
. Thatās equivalent to having a Prettier configuration file (called .prettierrc
) with the setting of "semi": false
.
When collaborating with others, you should use an explicit Prettier configuration file in order to make your codeās formatting match exactly with theirs. For example, if you opened up someone elseās file and removed all of their semicolons, theyād probably be mad at you.
But if they have a .prettierrc
file containing the entry "semi": true
, then your system would automatically use their preference of having semicolons. This is getting a bit advanced, which is why itās optional for this beginnerās guide ā but itās good to know how Prettier settings work for collaboration.
Iād also point out that the online development tool CodeSandbox comes with Prettier installed on every project. Every web developer should know how Prettier works, even if you choose not to use it.
Add Fira Code Font and Font Ligatures (Optional but Recommended):
Fira Code is an awesome free font that comes with something called font ligatures. Font ligatures are little icons that replace other characters.
For programming, that means your code is going to become a lot more readable. Hereās an example: Fira Code will replace !=
with ā
. While your computer will display the ligature, the text actually still contains !=
.
The settings.json
file already assumes youāve installed Fira Code (specifically the Semi Bold variant) and want font ligatures to be enabled. Youāre free to skip this section if you donāt want those things.
1. Download Fira Code from the Fira Code GitHub repository by looking for the releases.
2. Extract the fonts (.ttf
files) somewhere, such as your desktop.
3. Installation instructions differ for Mac OS versus Windows.
On Mac OS, browse to the downloaded ttf
folder (such as \Downloads\Fira_Code_v5.2\ttf
). Select all of the font files; then right-click and select āOpenā (or equivalently āOpen With Font Bookā). Select āInstall Font.ā
On Windows 10, browse to the downloaded ttf
folder (such as \Downloads\Fira_Code_v5.2\ttf
). Youāll need to unblock each font file before installing it because of a Windows security precaution. To do so, right-click each font file, click āProperties,ā and then check āUnblockā next to āSecurityā at the bottom of the General tab. (See the screenshot below.) Click āOK,ā and then youāll be able to actually install the font. Repeat the process of unblocking for each font file (six times total). Then, to install the fonts on Windows, you need to select all of the font files. Right-click on the selected files, and then choose Install.

Donāt forget you can change the font settings in VS Code. You can edit the settings.json
file, or you can open up the VS Code settings normally and type āfontā in the search bar. Similarly, you can search for āword wrap.ā
Windows Only: Install Cmder as Your VS Code Terminal (Optional)
Mac and Linux users are going to have a great code-terminal experience out of the box, but Windows users should take a few more steps here. I recommend you download and install Cmder, a fantastic code terminal.
When you go to download Cmder, I suggest grabbing the Git for Windows version, which will automatically install all those fun Git tools into your terminal with no further configuration required.
Once installed, the Cmder wiki has detailed instructions for setting up Cmder as your terminal inside of VS Code. It takes a few minutes, but youāll have a seamless, professional development environment with a built-in terminal.
Conclusion: Setting Up VS Code for Beginners
I genuinely wish I had this guide when I first started to use VS Code. Instead, Iāve had to compile these settings over the last year from real-world work, courses, and just using VS Code as my text editor on a daily basis.
Thankfully, because I recently needed to configure a new computer, you now have this beginnerās guide to setting up VS Code like a professional. I hope you find these extensions and settings to be useful.
The last thing I would mention to a brand-new software engineer is that, honestly speaking, a graphical program (also called a GUI) can make Git much easier to use than doing everything from the command line.
Personally, I use GitHub Desktop, which is available for both Windows and Mac (but not for Linux). If youād rather use a host other than GitHub for your Git repository, then check out the official list of Git GUI programs.
Happy coding! šš§ ššš