DEV Community

Cover image for 5 VSCode Extensions You Must Use
Murtuzaali Surti
Murtuzaali Surti

Posted on • Updated on

5 VSCode Extensions You Must Use

Here are the 5 most useful Visual Studio Code extensions to improve your workflow!

1. Error Lens

Error Lens is an extension which allows you to see error, warning and diagnostic messages in line with your code without having to hover or click on anything! It also highlights the line with different colors to help you better visualize and differentiate between errors, warnings and other messages!

errorlens_demo


2. CSS Peek

With this extension, you can search for relevant CSS files by using CSS classes in html file and edit CSS files there itself! Here's how it works:

CSS Peek working


3. GitLens

GitLens is a powerful extension which can display when a particular line was committed, by whom it was committed and in which pull request it was included along with the commit message! All of this information is inline with the line upon which your cursor is currently located.

You can also hover over the message to get even more information about a particular line of code!

gitlens inline message

gitlens hover

There are many more features in GitLens which you can explore and play around with!


4. Import Cost

Import Cost allows us to see the size of the imported package inline in the editor itself!

import cost


5. Version Lens

Version Lens fetches information about dependency versions and displays it on top of the dependency! You can also change to the latest version just by clicking on the latest label!

Version Lens


These were the 5 VSCode extensions which are powerful, useful and can improve your productivity and workflow!

Signing off.


I started a blog, Syntackle

Twitter | GitHub | LinkedIn

Discussion (79)

Collapse
j471n profile image
Jatin Sharma • Edited on

All of them are already installed. Nice work though :)

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

Awesome! How many total extensions are installed on your system?

Collapse
j471n profile image
Jatin Sharma

Around 75+

But I Don't use all of them at the same time, because they eat RAM. Initially I disable all the extension and I enable it when I need it, It totally depend on the workspace.

Thread Thread
murtuzaalisurti profile image
Murtuzaali Surti Author

Yeah, even I have 60 installed but I don't require them all at once.

Thread Thread
j471n profile image
Jatin Sharma

Yes exactly, Otherwise vs code beats chrome in terms of RAM consumption.

Thread Thread
murtuzaalisurti profile image
Murtuzaali Surti Author

Oh, I probably need to check that on my machine

Collapse
wjk22 profile image
Wojtek Kalka

Hehe and after all that extensions I still moved over to nvim most of the time

Collapse
harithzainudin profile image
Muhammad Harith Zainudin

im still thinking either I wanna try vim/nvim or still using vs code. hm

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

use what's best for your use case

Thread Thread
harithzainudin profile image
Muhammad Harith Zainudin

im quite a noob here. will it be okay if you give what kind of use case that is better for which one?
cause, it will take time to get used to vim tho.

Thread Thread
murtuzaalisurti profile image
Murtuzaali Surti Author

If you are a beginner, start with VS code because it's simple and easy to use. When you become quite experienced enough, you can try vim too.

Thread Thread
harithzainudin profile image
Muhammad Harith Zainudin

Nice! thanks for the suggestions. Nevertheless, will start using vim sooner or later to try it out!

Thread Thread
murtuzaalisurti profile image
Murtuzaali Surti Author

Great

Collapse
sercan profile image
Sercan Sebetçi

I think the most important problem of plugins in Visual Studio Code isn't knowing which plugin has which effect. For example, today I used the ?? (nullish coalescing operator) while working with JavaScript. A plugin inserted a space character between characters in this operator when I saved the file. I was able to avoid this effect after opening and saving the file in another editor. I tried all the suggestions in the forums but it didn't work. Someone tell me this is a joke!

Collapse
micahfang profile image
Micah Fang

I used to use import cost too, but now i found that it's will cost a bit seconds to wait the size to calculator. It's kind of slowing down my coding for me.
Maybe it's just for me, do you also has this problem?

Collapse
stivncastillo profile image
Stiven Castillo

Yes, this consumes a lot of memory and the vscode is very slow. I don't reccommend install Import Cost.

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

Yeah it takes some time to calculate

Collapse
andrewbaisden profile image
Andrew Baisden

Good list I know some of them already and have them installed.

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

That's great!

Collapse
towfiqi profile image
Towfiq I.

Thanks so much for CSS Peek. Its a so useful. I can't believe I have been wasting my life switching between files and searching for css classes like a caveman when this existed.

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

Thanks! CSS Peek is certainly useful!

Collapse
mjcoder profile image
Mohammad Javed

Numbers 1 & 2 look great, I'll be sure to install this - they'll come in handy.

Collapse
5alidshammout profile image
5alidshammout

after looking at my extensions when I added what I need from those, they become 50,
after removing unused ones they become 27, so much less

Collapse
dinkopehar profile image
Dinko Pehar

ErrorLens is quite nice. Now I have inline representation of what's out of order 😄

Collapse
basvandooremalen profile image
Bas

Awesome extensions, thanks!

Collapse
getcodescandy profile image
codescandy

Awesome thank you for sharing this extension.

Collapse
adarshgoyal profile image
Adarsh Goyal

Tabnine is also a good! tabnine.com/

Collapse
ademking profile image
Adem Kouki
Collapse
ambriel profile image
Ambriel Goshi

Thanks for sharing

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

🙌

Collapse
abdrzqsalihu profile image
Abdulrazaq Salihu

Thanks for sharing

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

🙌

Collapse
masekere profile image
Gift Masekere

thanks a lot these extensions are really life saving

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

🙌

Collapse
harithzainudin profile image
Muhammad Harith Zainudin

Nice list! Thanks for sharing 😄😄

Collapse
aaravrrrrrr profile image
Aarav Reddy

Quite a helpful post. Glad I landed here.

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

Glad you like it

Collapse
janaina2020 profile image
Janaina Behling

Thanks Murtu! I'll try to learn it and see some applications in my Santa Officeless projetc.

Collapse
skitzdev profile image
Justin Praßl

1 and 2... Makes it all so easy 😂 Thanks!

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

🚀

Collapse
itamer profile image
Sarah

I almost didn't bother clicking on this but you actually have some interesting extensions for solo developers.

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

Glad you found this helpful

Collapse
urbanisierung profile image
Adam Urban

Thanks for that! Didn't know about Version Lens, installed and already in use :)

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

That's great

Collapse
colonelxy profile image
Harold Oliver 🛡️

Thanks! made my life easier!

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

awesome!

Collapse
snelson1 profile image
Sophia Nelson

Thanks for this.

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

🙌

Collapse
freakdaddycode profile image
Richard Hart

Nice, loving the CSS peek

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

me too

Collapse
itsmnthn profile image
Manthankumar Satani

Very helpful

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

Thanks!

Collapse
jwp profile image
John Peters

Love ❤️ gitlens...

Collapse
dendihandian profile image
Dendi Handian

From the list, only use git lens. Now interested in import cost and version lens

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

Import cost is useful especially for large projects having too many dependencies and you need to track the size of dependency

Collapse
jacksonkasi profile image
Jackson Kasi

thanks man :)

Collapse
murtuzaalisurti profile image
Murtuzaali Surti Author

🙌

Collapse
shrihari profile image
Shrihari Mohan

Thanks , I need to install 4 of them. I had only git lens.

My most used extension is Turbo console log.