Nodejs/JavaScript extensions for VS Code

To Nha Notes | Nov. 22, 2023, 10:55 p.m.

Recommended extensions

If you are just getting started, here are the extensions we recommend trying out.

ESLint

Marketplace - ESLint

Publisher - Microsoft

Easily integrate ESLint into your project. If ESLint isn't your favorite linter, choose among a variety of other linter extensions, including JSHintJSCS, and JS Standard.

Read more about setting up JavaScript linters in the VS Code documentation.

ESLint animation

SonarLint

Marketplace - SonarLint

Publisher - SonarSource

SonarLint helps you find and fix bugs and security issues as you code. The extension runs in the background and, just like a spell checker, highlights coding issues. SonarLint not only tells you what the issue is but also provides in-context guidance on why an issue is harmful and how to fix it, with related examples. The extension supports 200+ JS/TS rules and includes several Quick Fixes to automatically handle your coding issues.

Search for 'SonarLint' in the VS Code Marketplace and install. No configuration is required. You can start with a default profile that fits most users and customize it based on your specific needs.

SonarLint animation

JavaScript (ES6) code snippets

Marketplace - JavaScript (ES6) code snippets

Publisher - charalampos karypidis

VS Code comes with many built-in code snippets. The JavaScript (ES6) code snippets extension adds snippets for ES6 (ECMAScript 6) syntax. Here is a small sampling of the snippets provided by this extension. See the extension's README to see the dozens of snippets this pack gives you.

javascript snippets

You can read more about JavaScript snippets in the VS Code documentation. For additional snippet packs, including Angular 1Angular 2Bootstrap 3ReactJs, and jQuery, check out the Marketplace's Snippets category.

npm IntelliSense

Marketplace - npm IntelliSense

Publisher - Christian Kohler

This extension provides IntelliSense for npm modules when using import or require.

npm intellisense

References

JavaScript Extensions in Visual Studio Code