Visual Studio Code includes built-in JavaScript IntelliSense, formatting, code navigation, refactorings, and many other advanced language features. Most of these features just work out of the box, while some may require basic configuration to get the best experience. Some of the useful features provided by VSCode to implement Node.js applications are as below,
By using the .js file extension, VS Code interprets this file as JavaScript and will evaluate the contents with the JavaScript language service.
IntelliSense shows you intelligent code completion, hover information, and signature information so that you can write code more quickly and correctly.VS Code provides IntelliSense within your JavaScript projects; for many npm libraries such as express. See Working with JavaScript for information about VS Code's JavaScript IntelliSense
VS Code includes basic JavaScript snippets that are suggested as you type.
You can leverage some of TypeScript's advanced type checking and error reporting functionality in regular JavaScript files too. This is a great way to catch common programming mistakes. These type checks also enable some exciting Quick Fixes for JavaScript, including Add missing import and Add missing property.
VS Code understands many standard JSDoc annotations, and uses these annotations to provide rich IntelliSense.
Automatic imports speed up coding by suggesting available variables throughout your project and its dependencies. When you select one of these suggestions, VS Code automatically adds an import for it to the top of the file.
Code navigation lets you quickly navigate JavaScript projects. By using this functionality , one can go to definition , reference and type definition.
Unused JavaScript code, such the else block of an if statement that is always true or an unreferenced import, is faded out in the editor. This provides developer a clear view to remove unused code.