I love VS Code 😍 There’s no better web code editor out there for me. Today, I’m going to share with you the 10 VS Code extensions that make my life easier. I can’t imagine coding without them. Let’s dive into it!
My number one. I was a bit skeptical initially, but today I can’t imagine my life without Prettier 😀 For those unfamiliar with the tool, Prettier is an opinionated code formatted. Opinionated, because it allows for almost no configuration. It reformats your code automatically based on its own rules.
It may sound scary and limiting, but it really frees your mind. Suddenly you forget about all those spaces vs tabs wars and discussions on which column shall the code be wrapped. Prettier does that all automatically. It can even be done on saving the file! Just take a look, how beautiful that is:
It is also very easy to execute prettier formatting with pre-commit git hook, so the checked-in code is always formatted, even if some team members don’t use it in their IDE.
Never again without Prettier! 🙂
ES7+ React/Redux/React-Native snippets
I recommend trying this extension out and exploring its built-in snippets.
C# to TypeScript
This one is a time-saver for .NET developers working with TypeScript. It allows generating TypeScript interfaces from C# classes. You can simply copy a C#
class and paste is as a TypeScript’s
interface in Visual Studio Code:
You can also paste using keyboard shortcuts. There’s even a CLI tool available in case you’d want to automate this process. This extension doesn’t support all scenarios (especially no support for
records 😭), but it still covers most simple copy-paste cases. By the way, synchronizing C# with TypeScript types is one of the challenges for full stack .NET developers.
From all VS Code extensions I use, this is the only one that actually helps me learn on the job. It was called TypeScript Error Translator before, and this is what I initially used it for. It basically provides more meaningful, crowdsourced translations for often enigmatic TypeScript errors:
When a translation is missing, you can always contribute one. Additionally, as its new name suggests, it also lets you learn programming concepts directly inside your code. As soon as it finds a new concept in the code, a brief explanation is shown:
It will stop highlighting this particular type of concept as soon as you mark it as learned. I think it’s a quite interesting way of learning on the job 😉
Thunder Client is like Postman, but built into VS Code. It lets you easily play with HTTP APIs. You can create your own collections of requests and export them to JSON, which can be checked into the source control.
Yet another very useful extension! 👍
This is one of my recent discoveries. Preview.js allows to live-preview React, Solid or Vue components directly in VS Code. It also generates the initial props data, sometimes even for complex objects:
The plugin is also configurable for custom scenarios like external dependencies. You can find more information in the documentation.
If you like analytics, you should check this VS Code extension. WakaTime measures how much time you spend actually writing code. It shows exactly in which language you programmed for how much time. It also divides time entries into projects you worked on:
It’s interesting to get such insights “for free” and see how little time we spend actually coding 😀Try it for yourself and let me know your results!
One Dark Pro
Who never started a new project by installing fancy tools, text editors or choosing the best color theme for your IDE? 😄 Of course – good colors = smooth -and pleasant – coding 😎 One Dark Pro is a must-have theme for my Visual Studio Code. I love it, it makes source code much more readable for me. What’s your favorite color theme for VS Code? 😉
Last but not least, a good friend to the One Dard Pro theme, legendary VS Code icons set. It has over 13M installs! 🤯
Apart from getting +100 to fanciness 😉, it makes icons more explicit in the explorer:
As you can see, it even guesses the folder type based on its name – see
utils folders’ icons above.
Not critical, yet helpful. Undeniably adds a million to your professionalism as a web developer 😎😎😎
So, that’s it! The list of my 10 favorite Visual Studio Code extensions.
What about you? What are your must-have VS Code extensions? 😉