VS Code is probably the most used code editor in the world. One of the main reasons why it has become so popular is its ability to install additional features by using extensions. There are more than thousands of extensions available on VS Code. But it can be really hard to find the extensions you might be looking for.
In this blog, we will look into 10 extensions (in no particular order) on VS Code which will immediately help you in your development journey.
1. Better Comments
ext install aaron-bond.better-comments
This extension allows you to add semantics to your comments. You can categorize comments into:
- Alerts
- Queries
- TODOs
- Highlights
- Commented out code can also be styled to make it clear the code shouldn't be there
- Any other comment styles you'd like can be specified in the settings
2. Bracket Pair Colorizer
ext install CoenraadS.bracket-pair-colorizer
This extension allows matching brackets to be identified with colors. The user can define which characters to match, and which colors to use.
3. Code Runner
ext install formulahendry.code-runner
This extension allows you to run code snippets or code files for multiple languages like C, C++, Java, JavaScript, PHP, Python, Perl and many many more.
4. Code Spell Checker
ext install streetsidesoftware.code-spell-checker
A basic spell checker that works well with camelCase code.
The goal of this spell checker is to help catch common spelling errors while keeping the number of false positives low.
5. ES7 React/Redux/GraphQL/React-Native snippets
ext install dsznajder.es7-react-js-snippets
This extension provides you with JavaScript and React/Redux snippets in ES7 with Babel plugin features for VS Code.
If you are a React Developer then this extension is a must. It provides boilerplate code, auto-completion for react components, etc. which makes life a lot easier.
There are a lot of snippets available in this extension. A list of them can be found at this link.
6. GitLens — Git supercharged
ext install eamodio.gitlens
GitLens supercharges the Git capabilities built into Visual Studio Code. It helps you to visualize code authorship at a glance via Git blame annotations and code lens, seamlessly navigate and explore Git repositories, gain valuable insights via powerful comparison commands, and so much more.
7. Live Server
ext install ritwickdey.LiveServer
If you are a web developer and code in plain HTML, CSS, and javascript then you must know the pain to continuously reload the page can be.
Live Server is an amazing extension that starts your HTML file on localhost and automatically reloads the page when you save your file.
8. Live Share
ext install MS-vsliveshare.vsliveshare
Visual Studio Live Share enables you to collaboratively edit and debug with others in real-time, regardless of what programming languages you're using or app types you're building. It allows you to instantly (and securely) share your current project, and then as needed, share debugging sessions, terminal instances, localhost web apps, voice calls, and more!
9. Prettier - Code formatter
ext install esbenp.prettier-vscode
Prettier is arguably the best extension on VS Code.
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.
It supports JavaScript, TypeScript, Flow, JSX, JSON, CSS, SCSS, Less, HTML, Vue, Angular, GraphQL, Markdown, YAML.
10. Path Intellisense
ext install christian-kohler.path-intellisense
This is a simple extension which automatically completes the path files in your code.
If you have any more extensions which you find quite useful then please mention them in the comments.
Happy Coding!
Top comments (1)
Modules that I currently have enabled for JavaScript and HTML/CSS development:
Bookmarks
*bracket-pair-colorizer-2
*color-highlight
csv-to-table
*indent-rainbow
lorem-ipsum
node-module-intellisense
rainbow-csv
*rewrap
spellright
*vscode-eslint
*vscodeintellicode
vscode-random
*vscode-todo-highlight
*vscode-todo-parser
*vs-color-picker
The asterisked ones get a lot of use from me. "lorem-ipsum" is useful for generating random type passwords useful for protecting PDF's.