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 to download it.
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:
- Make sure to remove the Bracket Pair Colorizer extension.
- Update VS Code
- Open your user settings via
CTRLfor non-Mac users) +
Pand type settings. 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,
With Emmet, we can write shortcuts and then expand them into a piece of code. An example is
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:
<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.
- Linked Editing
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.
2.Extensions and Plugins
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.
ESlint & Prettier
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.
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.