search
HomeDevelopment ToolsVSCode10 Must-Have VSCode Extensions for JavaScript Developers

10 Must-Have VSCode Extensions for JavaScript Developers

Nov 16, 2019 am 09:30 AM
javascriptvscodeExpand

Today, Visual Studio Code is undoubtedly the most popular lightweight code editor. It does borrow a lot from other code editors, most notably Sublime and Atom. However, the key to its success is its ability to provide better performance and stable performance.

10 Must-Have VSCode Extensions for JavaScript Developers

#In addition, it also provides functions that developers need very much, such as smart code prompts. These features were once only available in complete integrated development environments (IDEs) like Eclipse or Visual Studio 2017.

The power of VS Code undoubtedly comes from its plug-in market. Thanks to the open source community, VS Code now supports almost every programming language, framework, and development technology. There are various ways to provide this support, mainly including providing code snippets, syntax highlighting, Emmet, and smart prompt functions for specific technologies.

Types of VS Code plug-ins

In this article, I mainly introduce the VS Code plug-ins specifically for JavaScript developers. There are many VS Code plug-ins that meet this condition, and of course I won't introduce them all. Instead, I’ll focus on VS Code plugins that have become quite popular and are essential for JavaScript developers. For simplicity, I divided them into 10 categories.

There may be plug-ins that you already know and are using, but there are also probably some that you have heard of but have never used. I also hope that this article can give you a brief introduction. Check out these plugins.

1. Code snippet plug-in

When you first install VS Code, it will come with some JavaScript and TypeScript code snippets. Before you get started with modern JavaScript, you'll need some additional code snippets to help you write ES6/ES7 code quickly:

2. Syntax highlighting plug-in

The latest version of VS Code currently supports coloring of variables and function references. It is now more like the Atom.io editor syntax, so extensions like JavaScript Atom Grammar are no longer needed.

However, we still have some syntax highlighting extensions that can be useful in some projects. Here are a couple:

  • Babel JavaScript: Supports syntax highlighting for ES201X, React, FlowType, and GraphQL.

  • DotENV: Supports .env file syntax highlighting, which will be very useful when you use Node.

3. Code linting plug-in

To write JavaScript code efficiently with minimal trouble, you need a code linting (linter) tool. It forces all members of the team to follow specific coding conventions. ESLint is the most popular and supports many coding styles, including Standard, Google, and Airbnb's JavaScript coding specifications. Here are the most popular VS Code code checking plugins:

  • ESLint: This plugin integrates ESLint into VS Code. It is the most popular code detection plugin with over 6.7 million downloads. Its rules are configured in .eslintrc.json.

  • JSHint: Code detection plug-in based on JSHint. Use the .jshintrc file in the project and directory as its configuration.

  • JavaScript Standard Style: Zero configuration and strict rule code detection, enforced use of StandardJS rules.

  • JSLint: linter extension of JSLint.

If you want to see a review of the advantages and disadvantages of various code detection tools, you can take a look at ourComparison of code detection tools.

4. Node plugin

Every JavaScript project needs at least one Node package, unless you are the kind of person who likes to do things the hard way. Here are some VS Code plugins that can help you work with Node modules more easily.

  • npm: Use package.json to verify the installed npm package to ensure that the version of the installation package is correct. For packages that lack the package.json file or are not installed Packages are highlighted.

  • npm Intellisense: Automatically complete npm modules in import statements.

    10 Must-Have VSCode Extensions for JavaScript Developers

  • Path IntelliSense: It actually has nothing to do with Node, but you definitely need intelligent prompts for local files , this plug-in will automatically complete file names.

  • Node exec: Allows you to use Node to execute the current file or selected code.

  • View Node Package: Use this plug-in to quickly view the source code of the Node package, allowing you to open the code library or document of the Node package directly in VS Code.

  • Node Readme: Quickly open the npm package document.

  • Search node_modules: Usually the node_modules folder is not included in the default search scope, this plugin allows you to search it. Source code: vscode-search-node-modules.

    10 Must-Have VSCode Extensions for JavaScript Developers

  • Import Cost: Displays the size of the imported package. Source code: import-cost.

    10 Must-Have VSCode Extensions for JavaScript Developers

5. Code Formatting Plug-in

Sometimes, you find yourself thinking about the past Format code that has been written in a less than ideal style. To save time, you can install any of the following VS Code plug-ins to quickly format and refactor existing code:

  • Beatufy:a The plugin of jsBeautifier supports JavaScript, JSON, CSS and HTML. Can be customized via .jsbeautifyrc file. It is the most popular formatting tool with 2.3 million downloads currently.

  • Prettier Code Formatter: Take advantage of Prettier’s plug-in that supports JavaScript, TypeScript and CSS and currently has more than 1.5 million downloads.

  • JS Refactor: Provides many practical methods and operations for refactoring JavaScript code, such as extracting variables and methods, and converting existing code to use arrow functions and template strings. Equivalent forms, derived functions, etc.

  • JavaScript Booster: An amazing code refactoring tool. It requires code operations, such as converting var to const or let, removing redundant else statements, and merging declarations and initialization. A lot of its inspiration comes from WebStorm. Source code: vscode-javascript-booster.

    10 Must-Have VSCode Extensions for JavaScript Developers

6. Browser plug-in

Unless you are writing the console in JavaScript program, otherwise you would probably execute your JavaScript code in the browser. This means that you will frequently refresh your browser to see the effect of each code update you make. Here are some tools that can greatly reduce this repetitive process when you develop, instead of manually refreshing the browser every time:

7. Framework plug-ins

For most projects, you will use an appropriate framework to build your code to reduce development time . VS Code supports most mainstream frameworks through plug-ins. However, there are still some specific frameworks that are not fully supported. Below are some VS Code plugins that provide powerful features.

  • Angular 7 Snippets: Snippets for Angular 2, 4, 5, 6, 7 and 8 Beta. Supports Typescript, HTML, Angular Material ngRx, RxJS, PWA and Flex Layout. Contains 237 angle clips so far.

  • Angular v7 snippets: Provides code snippets for TypeScript, RxJS, HTML and Docker files. There are currently over 2.7 million downloads.

  • ES7 React/Redux/GraphQL/React-Native snippets: Use the Babel plugin feature to provide React/Redux snippets in ES7 syntax. Contains code snippets for JavaScript and TypeScript.

  • React Native Tools: Provides code intelligence tips, command line tools and debugging features for the React Native framework.

  • React-Native/React/Redux snippets for es6/es7: Provides ES6/ES7 syntax snippets for React, React Native, Redux and storybook in ES6/ES7 syntax.

  • Vetur: Provides syntax highlighting, code snippets, Emmet, code detection, smart tips and debugging support for the Vue framework. It comes with good documentation posted on GitBook.

  • Ember: Provides command line support and smart prompts for Ember. After installation, all ember cli commands can be used directly in VS Code's own command line list.

  • Cordava Tools: Supports Cordava plug-ins and Ionic framework, providing support for smart prompts, debugging and other features of Cordova-based projects.

  • jQuery Code Snippets: Provides more than 130 jQuery code snippets, activated using the jq prefix.

8. Test plug-in

Testing is a key part of software development, especially for projects in the production stage. You can learn all about testing in JavaScript and read more about the various tests you can run in our guide, JavaScript Testing: Unit vs. Functional vs. Integration Testing. Here are some VS Code plugins for testing:

  • Mocha sidebar

    : Use the Mocha library to provide unit testing for your project. This framework helps you run tests directly in the code and display error messages in the form of decorators.

  • ES Mocha Snippets

    : Provides Mocha code snippets in ES6 syntax. The focus of this plug-in is to use arrow functions to reduce the use of curly braces as much as possible and keep the code compact. Semicolons can be allowed through settings.

  • Jasmine Code Snippets

    : Code snippets for the Jasmine testing framework.

  • Protractor Snippets

    : Code snippets for the Protractor end-to-end testing framework. Supports JavaScript and TypeScript.

  • Node TDD

    : Provides support for test-driven development for Node and JavaScript projects. The build of automated tests can be triggered immediately after the source code is updated. Source code: node-tdd

    10 Must-Have VSCode Extensions for JavaScript Developers

  • ##9. Other great plug-ins

I put the next batch of VS Code plug-ins in the "awesome" category because that description is just right.

    Quokka.js
  • : A very powerful debugging tool that provides a training ground for quickly building prototypes for JavaScript, and comes with

    very good documentation.

  • Paste as JSON
  • : Quickly convert JSON data into JavaScript code. Source code:

    quick-type.

    10 Must-Have VSCode Extensions for JavaScript Developers

  • Code Metrics
  • : This is another great plugin that calculates the complexity of JavaScript and TypeScript code . Source code:

    codemetrics.

    10 Must-Have VSCode Extensions for JavaScript Developers

    10 Must-Have VSCode Extensions for JavaScript Developers

    10 Must-Have VSCode Extensions for JavaScript Developers

##10. Plug-in package

Now that we have come to the last category, I want you to know that the VS Code market has a category of plug-in packages. Essentially, they are a collection of related

VS Code plug-ins, bundled into one package for easy installation. Here are some of the better ones:

Summary

VS Code has a large number of high-quality plug-ins, which makes it popular among the JavaScript developer community. Writing JavaScript code has never been easier.

● Plug-ins like ESLint help you avoid common errors in your code;

●Debugger for Chrome helps you debug code more easily;

●With The smart prompt Node.js plug-in helps you correctly reference modules;

● Available tools like Live Server and REST client allow you to reduce your dependence on external tools when completing your work;

●●Another example is the SpreadJS pure front-end table control, which allows online Excel to be embedded in your application.

All these tools greatly speed up your iteration process.

I hope these lists expose you to new VS Code plugins and help your workflow.

Recommended tutorial:

vscode tutorial

The above is the detailed content of 10 Must-Have VSCode Extensions for JavaScript Developers. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:sitepoint. If there is any infringement, please contact admin@php.cn delete
Visual Studio: Exploring the Free and Paid OfferingsVisual Studio: Exploring the Free and Paid OfferingsApr 22, 2025 am 12:09 AM

The main difference between the free and paid versions of VisualStudio is the richness of features and the service supported. The free version (Community) is suitable for individual developers and small teams, providing basic development tools; the paid version (Professional and Enterprise) provides advanced features such as advanced debugging and team collaboration tools, suitable for large projects and enterprise-level development.

Visual Studio Community Edition: The Free Option ExplainedVisual Studio Community Edition: The Free Option ExplainedApr 21, 2025 am 12:09 AM

VisualStudioCommunityEdition is a free IDE suitable for individual developers, small teams and educational institutions. 1) It provides functions such as code editing, debugging, testing and version control. 2) Based on the Roslyn compiler platform, it supports multiple programming languages ​​and integrates Git and TFVC. 3) Advanced features include unit testing, optimization suggestions include turning off unnecessary extensions and using a lightweight editor.

Visual Studio: Building Applications with EaseVisual Studio: Building Applications with EaseApr 20, 2025 am 12:09 AM

VisualStudio is an integrated development environment (IDE) developed by Microsoft, which supports a variety of programming languages, including C#, C, Python, etc. 1. It provides IntelliSense function to help write code quickly. 2. The debugger allows setting breakpoints, step-by-step code execution, and identifying problems. 3. For beginners, creating a simple console application is a great way to get started. 4. Advanced usage includes the application of design patterns such as project management and dependency injection. 5. Common errors can be solved step by step through debugging tools. 6. Performance optimization and best practices include code optimization, version control, code quality inspection and automated testing.

Visual Studio and VS Code: Understanding Their Key DifferencesVisual Studio and VS Code: Understanding Their Key DifferencesApr 19, 2025 am 12:16 AM

VisualStudio is suitable for large-scale projects and enterprise-level application development, while VSCode is suitable for rapid development and multilingual support. 1. VisualStudio provides a comprehensive IDE environment and supports Microsoft technology stack. 2.VSCode is a lightweight editor that emphasizes flexibility and scalability, and supports cross-platform.

Is Visual Studio Still Free? Understanding the AvailabilityIs Visual Studio Still Free? Understanding the AvailabilityApr 18, 2025 am 12:05 AM

Yes, some versions of VisualStudio are free. Specifically, VisualStudioCommunityEdition is free for individual developers, open source projects, academic research, and small organizations. However, there are also paid versions such as VisualStudioProfessional and Enterprise, suitable for large teams and enterprises, providing additional features.

Using Visual Studio: Developing Software Across PlatformsUsing Visual Studio: Developing Software Across PlatformsApr 17, 2025 am 12:13 AM

Cross-platform development with VisualStudio is feasible, and by supporting frameworks like .NETCore and Xamarin, developers can write code at once and run on multiple operating systems. 1) Create .NETCore projects and use their cross-platform capabilities, 2) Use Xamarin for mobile application development, 3) Use asynchronous programming and code reuse to optimize performance to ensure efficient operation and maintainability of applications.

How to format json with vscodeHow to format json with vscodeApr 16, 2025 am 07:54 AM

The ways to format JSON in VS Code are: 1. Use shortcut keys (Windows/Linux: Ctrl Shift I; macOS: Cmd Shift I); 2. Go through the menu ("Edit" > "Format Document"); 3. Install JSON formatter extensions (such as Prettier); 4. Format manually (use shortcut keys to indent/extract blocks or add braces and semicolons); 5. Use external tools (such as JSONLint and JSON Formatter).

How to compile vscodeHow to compile vscodeApr 16, 2025 am 07:51 AM

Compiling code in VSCode is divided into 5 steps: Install the C extension; create the "main.cpp" file in the project folder; configure the compiler (such as MinGW); compile the code with the shortcut key ("Ctrl Shift B") or the "Build" button; run the compiled program with the shortcut key ("F5") or the "Run" button.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment