Post

22 Best Visual Studio Code Extensions for Web Development

Draft updated on Invalid Date
    author

    James Quick

    22 Best Visual Studio Code Extensions for Web Development

    This tutorial is out of date and no longer maintained.

    Want to install all of the extensions listed below at once?! Check out The Web Development Essentials Extension

    1. Debugger for Chrome

    Debugger for Chrome

    Believe it or not, debugging JavaScript means more than just writing console.log() statements (although that’s a lot of it). Chrome has features built in that make debugging a much better experience. This extension gives you all (or close to all) of those debugging features right inside of VS Code!

    If you want to learn more about debugging you should read Debugging JavaScript in Chrome and Visual Studio Code.

    Marketplace Link: Debugger for Chrome

    2. Javascript (ES6) Code Snippets

    JavaScript Snippets

    I loooove snippet extensions. I’m a firm believer that there’s no need to retype the same piece of code over and over again. This extensions provides you with snippets for popular pieces of modern (ES6) JavaScript code.

    Side note…if you’re not using ES6 JavaScript features, you should be!

    Marketplace Link: JavaScript Snippets

    3. ESLint

    ESLint

    Want to write better code? Want consistent formatting across your team? Install ESLint. This extension can be configured to auto format your code as well as “yell” with linting errors/warnings. VS Code specifically is also perfectly configured to show you these errors/warnings.

    Check out the ESLint docs for more info.

    Marketplace Link: ESLint

    4. Live server

    Live Server

    Make changes in code editor, switch to browser, and refresh to see changes. That’s the endless cycle of a developer, but what if your browser would automatically refresh anytime you make changes? That’s where Live Server comes in!

    It also runs your app on a localhost server. There are some things you can only test when running your app from a server, so this is a nice benefit.

    Marketplace Link: Live Server

    5. Bracket Pair Colorizer

    Bracket Pair Colorizer

    Brackets are the bane of a developer’s existence. With tons of nested code, it gets almost impossible to determine which brackets match up with each other. Bracket Pair Colorizer (as you might expect) colors matching brackets to make your code much more readable. Trust me, you want this!

    Marketplace Link: Bracket Pair Colorizer

    6. Auto Rename Tag

    Auto Rename Tag

    Need to rename an element in HTML? Well, with Auto Rename Tag, you just need to rename either the opening or closing tag, and the other will be renamed automatically. Simple, but effective!

    Marketplace Link: Auto Rename Tag

    7. Quokka

    Quokka

    Need a quick place to test out some JavaScript? I used to open up the console in Chrome and type some code right there, but there were many downsides. Quokka gives you a JavaScript (and TypeScript) scratchpad in VS Code. This means you can test out a piece of code right there in your favorite editor!

    Marketplace Link: Quokka

    8. Path Intellisense

    Path Intellisense

    In large projects, remembering specific file names and the directories your files are in can get tricky. This extension will provide you intellisense for just that. As you start typing a path in quotations, you will get intellisense for directories and file names. This will save you from spending a lot of time in the file explorer.

    Marketplace Link: Path Intellisense

    9. Project Manager

    Project Manager

    One thing I hate is switching between projects in VS Code. Every time I have to open the file explorer and find the project on my computer. But that changes with Project Manager. With this extension, you get an extra menu in your side menu for your projects. You can quickly switch between projects, save favorites, or auto-detect projects Git projects from your file system.

    If you work on multiple different projects, this is a great way to stay organized and be more efficient.

    Marketplace Link: Project Manager

    10. Editor Config

    Editor Config

    Editor Config is a standard of a handlful of coding styles that are respected across major text editors/IDEs. Here’s how it works. You save a config file in your repository which your editor respects. In this case, you have to add an extension to VS Code for it to respect these config files. Super easy to setup and works great on team projects.

    Read more on the Editor Config Docs.

    Marketplace Link: Editor Config

    11. Sublime Text Keymap

    Sublime Keybindings

    Are you an avid Sublime user, nervous to switch over to VS Code? This extension will make you feel right at home, by changing all of the shortcuts to match those of Sublime. Now, what excuse do you have for not switching over?

    Marketplace Link: Sublime Keybindings

    12. Browser Preview

    Browser Preview

    I love the Live Server extension (mentioned above), but his extension goes another step further in terms of convenience. It gives you a live-reloading preview right inside of VS Code. No more having to tab over to your browser to see a small change!

    Marketplace Link: Browser Preview

    13. Git Lens

    Git Lens

    There a bunch of git extensions out there, but one is the most powerful with tons of features. You get blame information, line and file history, commit searching, and so much more. If you need help with your Git workflow, start with this extension!

    Marketplace Link: **Git Lens

    14. Polacode

    You know those fancy code screenshots you see in articles and tweets? Well, most likely they came from Polacode. It’s super simple to use. Copy a piece of code to your clipboard, open up the extension, paste the code, and click to save your image!

    Marketplace Link: Polacode

    15. Prettier

    Prettier

    DONT spend time formatting your code…just DONT. There’s no need to. Ealier, I mentioned ESLint which provides formatting and linting. If you don’t need the linting part, then go with Prettier. It’s super easy to setup and can be configured to formatted your code automatically on save.

    Never worry about formatting again!

    Marketplace Link: Prettier

    16. Better Comments

    Better Comments

    This extension color codes various types of comments to give them different significance and stand out from the rest of your code. I use this ALL THE TIME for todo comments. It’s hard to ignore a big orange comment telling me I’ve got some unfinished work to do.

    There are also color codes for questions, alerts, and highlights. You can also add your own!

    Marketplace Link: Better Comments

    Git Link

    If you’ve ever wanted to view a file that you’re working on in Github, this extension is for you. After installing, just right-click in your file and you’ll see the option to open it in Github. This is great for checking history, branch versions, etc. if you’re not using the Git Lens extension.

    Marketplace Link: Git Link

    18. VS Code Icons

    VS Code Icons

    Did you know you can customize the icons in VS Code? If you look in settings, you’ll seen an option for “File Icon Theme”. From there you can choose from the pre-installed icons or install an icon pack. This extension gives you a pretty sweet icon pack that is used by over 11 million people!

    Marketplace Link: VS Code Icons

    19. Material Icon Theme

    Material Icon Theme

    Fan of Google’s Material design? Then, check out this Material themed icon pack. There’s hundreds of different icons and they are pretty awesome looking!

    Marketplace Link: Material Icon Theme

    20. Settings Sync

    Settings Sync

    Developers, myself included, spend a lot of time customizing their dev environment, especially their text editors. With the Settings Sync extension, you can save your setting off in Github. Then, you can load them to any new version of VS Code with one command. Don’t get caught without your amazing setup ever again!

    Marketplace Link: Settings Sync

    21. Better Align

    Better Align

    If you’re the kind of person who loves perfect alignment in your code, you need to get Better Align. You can align multiple variable declarations, trailing comments, sections of code, etc. There’s no better way to get a feel for how amazing this extension is than installing it and giving it a try!

    Marketplace Link: Better Align

    22. VIM Keybindings

    VIM keybindings](https://marketplace.visualstudio.com/items?itemName=vscodevim.vim)

    Are you a VIM power user? Bless you if you are, but you can take all of that VIM power user knowledge and use it right inside VS Code. Not the path I personally want to go, but I know how insane productivity can be when using VIM to its potential, so more power to you.

    Marketplace Link: VIM Keybindings

    Conclusion

    What are your favorite VS Code Extensions for web development? Let us know in the comments.

    Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

    Learn more about our products

    About the authors
    Default avatar
    James Quick

    author

    Still looking for an answer?

    Ask a questionSearch for more help

    Was this helpful?
     
    Leave a comment
    

    This textbox defaults to using Markdown to format your answer.

    You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

    Try DigitalOcean for free

    Click below to sign up and get $200 of credit to try our products over 60 days!

    Sign up

    Join the Tech Talk
    Success! Thank you! Please check your email for further details.

    Please complete your information!

    Become a contributor for community

    Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

    DigitalOcean Documentation

    Full documentation for every DigitalOcean product.

    Resources for startups and SMBs

    The Wave has everything you need to know about building a business, from raising funding to marketing your product.

    Get our newsletter

    Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

    New accounts only. By submitting your email you agree to our Privacy Policy

    The developer cloud

    Scale up as you grow — whether you're running one virtual machine or ten thousand.

    Get started for free

    Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

    *This promotional offer applies to new accounts only.