Optimizing your Visual Studio Code in 2022
Tags: webdev, vscode, productivity, programming
Published: 2022-01-26 12:18:50


In this article we’ll be covering useful extensions, plugins and settings needed in order to ease and speed up development and production in Visual Studio Code.

Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux.

I’ll be assuming you already have VS Code installed and running but If you don't, head to [Visual Studio Code](http://code.visualstudio.com)  to download it. 


![home](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i9eupicbqodcud38p1sx.png)
<br>

##LET’S GET STARTED##

**1. Settings and Tips**

- **Bracket Pair Colorization**

Bracket pair Colorization is now native on VS Code so there is no longer use for the the old reliable Bracket Pair Colorization extension.
Follow the steps below to try it out:

1.  Make sure to remove the Bracket Pair Colorizer extension.
2.  Update VS Code
3.  Open your user settings via `CMD` (`CTRL` for non-Mac users) + 
    `Shift` + `P` and type settings. 
![vscode settings](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gomoxpnfrqqncot43jxp.png)
    The settings JSON file will open. Add the following:
```
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": true,
"editor.guides.bracketPairsHorizontal": true,
"editor.guides.highlightActiveBracketPair": true,
```
<br>

- **Emmet**

 <br>

With Emmet, we can write shortcuts and then expand them into a piece of code. An example is
 ```html
 ul>li.num$*3 
```  Here we are trying to create an unordered list element with 3 items with a class name of **"num"** inside. Notice that the class name also comes numbered below:
```html
  <ul>
       <li class="num1"></li>
       <li class="num2"></li>
       <li class="num3"></li>
  </ul>
``` 
**_NB_**: Checkout the Interactive Editor Playground page in VS Code, it highlights a number of editor features. In this section you can also find a link to the Emmet Cheat Sheet, which is super useful.
<br>

- **Linked Editing**
![linked editing setting](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b3pjzdvrd8dsj8ra536m.png)

It is a built-in feature of VS Code, separate from the Auto Rename Tag extension. Depending on the language, related symbols, e.g HTML tags, are updated while editing. 
<br>

**2.Extensions and Plugins**

- **Live Server**
![Live Server](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g4oyhroerj04vjgwqilx.png)
It gives you the ability to Launch a local development server with live reload feature for static & dynamic pages.
<br>

- **VS Code Icons**
![VS Code Icons](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ajmwo7z0mrv8915icqb1.png)
Introduce beautiful icons to your VSCode. Give your IDE a new and easy feel.
<br>

- **Code Time**
![Code Time](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s2cl7wr1ctjv8jv3bylf.png)
Code Time is an open source plugin for automatic programming metrics and time tracking in Visual Studio Code. Join our community of over 200,000 developers who use Code Time to reclaim time for focused, uninterrupted coding. Protect valuable code time and stay in flow.
<br>

- **VS Code Intellicode**
![VS Code intellicode](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tyjv238775u5vnwvawvh.png)
This extension provides AI-assisted IntelliSense by showing recommended completion items for your code context at the top of the completions list. It really helps speed things up.
<br>

- **ESlint & Prettier**
![ESlint and Prettier](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/orxty4d9oam7atawrfrl.png)
If you are working in an organization or a team that enforces a format or standard for code then you can adopt either of the above mentioned tools. 
ESlint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code whereas Prettier is an opinionated specialized code formatting tool. They are both used to help developers maintain a consistent style. They can also work hand-in-hand. 
<br>


##Conclusion##
There are many other useful extensions and settings specific to the language you choose to work with, but I will cover them in another article or video. For now, with this guide, I hope that I was able to introduce you to some easier ways of doing things. Stay happy coding and see you in future posts.