DEV Community

Great VSCode extensions for JS Developers

Insidious on September 21, 2021

Hey everyone, welcome to my first post here on DEV Community! In this post I will be talking about some great VSCode extensions for Java...
Collapse
 
raphaelzenou profile image
Raph Zenou • Edited

Thanks for the article mate. Just wanted to share other extensions:

  • Rainbow Indent, a great addition to the powerful Bracket Pair colorizer (now built in) / Prettier combo you suggested
  • GitLens, a superb complement to the source control Tab
  • JSON explorer well to do what it says on the tin
  • Microsoft Visual Studio Live Share for pair programming directly in the editor !!

[Edit : added VSCode live share which always blows my mind when I use it but that I forgot]

Collapse
 
insidiousthedev profile image
Insidious

Thanks for mentioning! :-)

Collapse
 
flatrick profile image
Patrik

Bracket Pair Colorizer 2 isn't necessary anymore as that functionality is now built into VSCode :) code.visualstudio.com/updates/v1_6...

Collapse
 
insidiousthedev profile image
Insidious

Oh, thanks for mentioning! I don't really read the changelogs so didn't know about it. :)

Collapse
 
lgrammel profile image
Lars Grammel

Great list, I use most of the extensions. I've developed another extension (for refactoring & linting): marketplace.visualstudio.com/items... - would be curious to hear what you think :)

Collapse
 
insidiousthedev profile image
Insidious • Edited

Thanks. Will use your extension and reply, since I was working on refactoring a project :)

Collapse
 
insidiousthedev profile image
Insidious

Alright, I refactored that random project. Your extension really made it much easier to refactor it. Thanks!

Collapse
 
lgrammel profile image
Lars Grammel

Thanks, glad it was useful!

Collapse
 
whobeu profile image
Robert G. Schaffrath

As another reply notes, Bracket Pair Colorizer is now a built in feature of VSCode starting with version 1.60 and is faster (which was the motivation for it be added as an internal feature).

To enable it, you need to either go to "Text Editor" and then check the "Editor>Bracket Pair Colorization" box to enable it or edit your settings.json and set "editor.bracketPairColorization.enabled" to "true".

Collapse
 
insidiousthedev profile image
Insidious

Thanks for mentioning! :)

Collapse
 
yatki profile image
Mehmet Yatkı

Hey @insidiousthedev , thanks for the list.. you can also check this little extension of mine. It gives you CTRL + SHIFT + T shortcut to surround your codeblocks with snippets.

GitHub logo yatki / vscode-surround

🔥A simple yet powerful extension to add wrapper templates around your code blocks

Surround

Visual Studio Marketplace Visual Studio Marketplace GitHub last commit License


A simple yet powerful extension to add wrapper snippets around your code blocks

Features

  • Supports language identifiers 🚀New!
  • Supports multi selections
  • Fully customizable
  • Custom wrapper snippets
  • You can assign shortcuts for each wrapper snippets separately
  • Nicely formatted (Preserves indentations 🚀New!)
  • Sorts recently used snippets on top 🚀New!

Demo 1: Choosing a wrapper snippet from quick pick menu

Demo 1

Demo 2: Wrapping multi selections

Demo 2

How To Use

After selecting the code block, you can

  • right click on selected code
  • OR press (ctrl+shift+T) or (cmd+shift+T)

to get list of commands and pick one of them.

Hint

Each wrapper has a separate command so you can define keybindings for your favorite wrappers by searching surround.with.commandName in the 'Keyboard Shortcuts' section.

List of commands






















Command Snippet

surround.with (ctrl+shift+T)
List of all the enabled commands below
surround.with.if if ($condition) { ... }
surround.with.ifElse if ($condition) { ... } else { $else




Cheers, 🚀🖖

Collapse
 
insidiousthedev profile image
Insidious

That is definitely a great extension you made! Keep up the great work and thanks for mentioning :)

Collapse
 
badcat profile image
BadCat Design

Thanks for the list.
Live Server (last updated April 2019) is an awesome extension! However for simple live refreshing HTML/CSS/JS (not for react, angular etc), we've been using Microsoft's "Live Preview" - still in "Preview" status - but has been super stable here.
marketplace.visualstudio.com/items...

Collapse
 
insidiousthedev profile image
Insidious

I'm so used to live server lmao. Thanks for mentioning!

Collapse
 
muhammadwasi81 profile image
Muhammad wasi

Tabnine
Thunder Client(Api testing)
Kite
BookMark
Vim

Collapse
 
insidiousthedev profile image
Insidious

I actually use Thunder Client instead of Postman, idk how I missed that. Thanks for mentioning! :)

Collapse
 
muhammadwasi81 profile image
Muhammad wasi

Its ok! ( :

Collapse
 
stuffsuggested profile image
Collapse
 
insidiousthedev profile image
Insidious

Hmm that's a great list, but some extensions are already built into vscode now. Thanks for mentioning :)

Collapse
 
yannmcx profile image
Yann MICHAUX

One more extension, which is just awesome : i18n-ally
github.com/lokalise/i18n-ally

Collapse
 
insidiousthedev profile image
Insidious

Thanks for mentioning! :)

Collapse
 
alpgul profile image
Alp Gul

Is there a extension to open jsfiddle, codepen, jsbin examples with vscode?

Collapse
 
insidiousthedev profile image
Insidious

Sorry, I don't know about it. :(

Collapse
 
diogomonteiro profile image
Diogo Monteiro

Great tip on NPM extensions! Ty :)

Collapse
 
insidiousthedev profile image
Insidious

You're welcome! :D

Collapse
 
xroydestroy profile image
Roxy

Hi!

Great list, and I'll add one. I found that Live Server isn't as reliable as Five Server. marketplace.visualstudio.com/items...

Collapse
 
insidiousthedev profile image
Insidious

Thanks for mentioning! :)

Collapse
 
daivietcomposite profile image
Đại Việt Composite

Congratulations on your first post. Hope to get more great ideas from you.

Collapse
 
insidiousthedev profile image
Insidious

Thanks!

Collapse
 
ranemihir profile image
Mihir Rane

Congratulations on your first post! I didn't know about npm extensions, thanks for the help. :)

Collapse
 
insidiousthedev profile image
Insidious

Glad it helped!