Top 10 extensions for angular js in visual code năm 2024

This extension pack packages some of the most popular (and some I find very useful) VS Code Angular extensions.

These are all the extensions I also recommend using for my free Angular training in Portuguese.

Extensions Included

Angular + Angular Material + NgRX + RxJS Code Snippets

  • Angular Snippets - Angular with TypeScript snippets.
  • Angular Material 2, Flex layout 1, Covalent 1 & Material icon snippets - Angular Material and Angular FlexBox component snippets.
  • Angular File Changer (Supporting Touch Bar and NgRx) - Navigate between Angular component's relative files or NgRx files using your Mac Touch Bar or keyboard.
  • angular2-switcher - Easily navigate to typescript(.ts)|template(.html)|style(.scss/.sass/.less/.css) in angular projects.
    • alt+o(Windows) or shift+alt+o(macOS)
    • by default VSCode opens file not opened from file explorer in 'preview' mode. When using this extension, I also recommend the following setting: workbench.editor.enablePreview": false

Testing

  • SimonTest - Analyzes your Angular code and generates unit tests for you (can overwrite spec files generated automatically with Angular CLI).
  • Karma Problem Matcher - Capture errors from Karma tests running in Visual Studio Code, so test failures will show up in 'Problems' pane (Ctrl+Shift+M on Windows/Linux, ⇧⌘M on Mac) and the failing test can also be made known to VS Code, eg. highlighted with squiggly lines, jumping to it with F8.

Template Productivity

  • Angular Language Service - provides a rich editing experience for Angular templates, very useful when working on Angular HTML template.
  • Auto Rename Tag - Auto rename paired HTML/XML tag.
  • Auto Close Tag - Automatically add HTML/XML close tag, same as Visual Studio IDE or Sublime Text.
  • Arrr - a tool to refactor components from HTML templates

Productivity

  • Auto Import - Automatically finds, parses and provides code actions and code completion for all available imports (altough VSCode has auto import funcionatlity, this plugin is a great complement).
  • Paste JSON as Code - Convert a JSON from clipboard to TypeScript interfaces.
  • Prettier - JavaScript formatter - format your Javascript / Typescript / CSS - specially for Angular, I recommend adding the following config in you users setting for VsCode. Recommended settings:
    • "prettier.singleQuote": true (this helps when using auto import extension or the VSCode auto import functionality).
    • "prettier.tabWidth": 2 (angular lint uses 2 spaces as default indentation). With this setting, you can continue using tabs if it is your preference
    • "prettier.useTabs": false (same as above)
  • Path Intellisense - VSCode has a very good auto import capability, but sometime you still need to import some files manually, and this extension helps a lot in these cases.
  • Move TS - this is a great extension to help you refactor and re-organize some files and components in the project. It automatically fixes the imports on the file (or component folder) that is being moved and also files that are importing the component you are moving. To use it: right-click on a file or folder in the Project Explorer pane and select 'Move TypeScript'.
  • Angular Schematics - this extension allows you to launch Angular schematics (CLI commands) from files Explorer (right-click) or Command Palette.
  • Angular-cli - This extension eases the use of the Angular cli in Visual Studio Code.

Code Analysis

  • ESLint
  • TypeScript Hero - Favorite feature for Angular projects: sorts and organizes your imports according to convention and removes imports that are unused (Ctrl+Alt+o on Win/Linux or Ctrl+Opt+o on MacOS).

Workbench

  • EditorConfig for VS Code - EditorConfig Support for Visual Studio Code (must have plugin for VSCode)
  • angular2-inline - support for inline HTML and CSS in angular components. I don't use inline templates, but this is a helpful extension in case you use inline HTML or CSS.

NgBootstrap Snippets - if you need Bootstrap 4 support in you angular project, this extension has some helpful snippets.

VS Code is one of the most-used code editors available. Its large ecosystem has been one of the main reasons behind this popularity. It supports a variety of extensions that can drastically enhance and help developers write better code.

As developers, it is essential to be aware of these extensions to get the most out of VS Code. This article will discuss 15 VS Code extensions that developers should know to be productive in implementing applications.

1. Live Server

Top 10 extensions for angular js in visual code năm 2024
Source: Live Server

The Live Server extension enforces auto-reload and simplifies developers’ work by displaying the results of their code directly in the web browser without reloading the page. It spares developers the burden of constantly saving work in the editor and then reloading the browser to see changes. The Live Server extension has more than 2.4 million downloads.

Installation

In VS Code, press ctrl+p and execute the command ext install ritwickdey.liveserver. Also, you can visit VS Code Marketplace, search for the Live Server extension, and directly install it in your local VS Code application.

Features

  • Easy to start and stop the server using the status bar.
  • Hotkey support.
  • Customizable server root, default browser, and port number.
  • The Explorer menu lets you launch the browser and open HTML files.
  • Assistance with files being excluded from change detection.
  • Browser support.
  • CORS is enabled by default.
  • Support for HTTPS and proxy.

Top 10 extensions for angular js in visual code năm 2024

Syncfusion React UI components are the developers’ choice to build user-friendly web applications. You deserve them too.

Explore Now

2. REST Client

Top 10 extensions for angular js in visual code năm 2024
Source: REST Client

Rest Client is another popular VS Code extension with more than 2.6 million downloads. It allows developers to send HTTP requests and read the return message directly in VS Code.

Installation

In VS Code, press ctrl+p and execute the command ext install humao.rest-client. Otherwise, you can visit VS Code Marketplace, search for the Rest Client extension, and directly install it in your local VS Code application.

Features

  • You can inspect and delete request history.
  • Multiple requests can be written in a single file.
  • Only the response body and natural response are saved to the local disk.
  • Customizable font size, family, and weight.
  • Response preview with standard components.
  • Proxy support.
  • Support for HTTP language.
  • You can send SOAP requests.

3. Settings Sync

Top 10 extensions for angular js in visual code năm 2024
Source: Settings Sync

The Settings Sync extension allows developers to sync snippets, settings, themes, key bindings, and file icons across various machines while working on a development project. It uses GitHub Gists to facilitate these services. You can find more details on configuring Github with Settings Sync in their documentation. Settings Sync has more than 3 million downloads.

Installation

In VS Code, press ctrl+p and execute the command ext install Shan.code-settings-sync. Otherwise, you can visit VS Code Marketplace, search for Settings Sync extension, and directly install it in your local VS Code application.

Features

  • Simple one-click upload and download.
  • A summary page at the end on which to include information about the configuration and affected extensions.
  • Automatic updates as the computer starts up.
  • You can use a GitHub account token and Gists.
  • A GUI to change settings.
  • Support for GitHub Enterprise.

Top 10 extensions for angular js in visual code năm 2024

All Syncfusion’s 70+ React UI components are well-documented. Refer to them to get started quickly.

Read Now

4. Docker

Top 10 extensions for angular js in visual code năm 2024
Source: Docker

Docker is not a new thing for modern developers. The Docker extension for VS Code brings all its container management features to your favorite code editor. It has more than 17 million downloads and can be used to create, manage, and debug containerized applications with a few clicks.

Installation

First, you need to install Docker on your computer.

Then, in VS Code, press ctrl+p and execute the command ext install ms-azuretools.vscode-docker. Or you can visit VS Code Marketplace, search for the Docker extension, and directly install it in your local VS Code application.

Features

  • Support for debugging for Node.js, Python, and .NET Core inside containers.
  • Suggestions when editing Dockerfile and docker-compose.yml files.
  • Docker files can be generated.
  • An explorer view.
  • Built-in Docker commands.
  • Tooltips when hovering over a Docker Compose YAML attribute.

5. Peacock

Top 10 extensions for angular js in visual code năm 2024
Source: Peacock

The Peacock extension is useful for changing the color of your workspace when you have multiple code editor windows active at once. It’s useful to distinguish among the various code editor windows and projects. The Peacock extension has more than 1.7 million downloads.

Installation

In VS Code, press ctrl+p and execute the command ext install johnpapa.vscode-peacock. Or you can visit VS Code Marketplace, search for the Peacock extension, and directly install it in your local VS Code application.

Features

  • Integrate with Live Share and VS Code Remote.
  • Create user-defined colors.
  • Customize of VS Code with different colors.
  • Use in different parts of the editor.

Top 10 extensions for angular js in visual code năm 2024

Be amazed exploring what kind of application you can develop using Syncfusion React components.

Try Now

6. Prettier

Top 10 extensions for angular js in visual code năm 2024
Source: Prettier

Prettier is one of the most popular VS Code extensions at the moment. It helps developers follow a standard style guide and maintain the same styles across the development team. With Prettier, you can quickly clean and format your code base to remove inconsistencies. More than 23 million developers have downloaded the VS Code Prettier extension so far.

Installation

In VS Code, press ctrl+p and execute the command ext install esbenp.prettier-vscode. Or you can visit VS Code Marketplace, search for the Prettier extension, and directly install it in your local VS Code application.

Features

  • Support for JavaScript, TypeScript, JSON, CSS, and more.
  • Code formatting with .
  • Automatic formatting of your scripts so you can read them easily.
  • Easy to set up.

7. Stylelint

Top 10 extensions for angular js in visual code năm 2024
Source: Stylelint

Stylelint is a simple, automated linter add-on for VS Code, capable of highlighting code problems, stylistic errors, bugs, and other dubious constructs. In addition, it forces the development team to follow a set of defined stylistic rules to prevent junk in the code.

Installation

In VS Code, press ctrl+p and execute the command ext install stylelint.vscode-stylelint. Or you can visit VS Code Marketplace, search for the Stylelint extension, and directly install it in your local VS Code application.

Features

  • More than 170 built-in rules for modern CSS features.
  • Plugin support for personalized rule creation.
  • Automatic repair of bugs in the code once it recognizes any patterns.

Top 10 extensions for angular js in visual code năm 2024

Syncfusion Angular component suite is the only suite you will ever need to develop an Angular application faster.

Explore Now

8. Import Cost

Top 10 extensions for angular js in visual code năm 2024
Source: Import Cost

Import Cost shows an estimated import package size in your code. It can be used to prevent importing hefty packages into your project and ultimately improve application performance. It displays the package size as soon as you import the library in the VS Code editor.

Installation

In VS Code, press ctrl+p and execute the command ext install wix.vscode-import-cost. Or you can visit VS Code Marketplace, search for the Import Cost extension, and directly install it in your local VS Code application.

Features

  • Support for multiple types of imports, including default, entire content, selective, and more.
  • Compatible with JavaScript and TypeScript.
  • Uses webpack to decide the package sizes.

9. SonarLint

Top 10 extensions for angular js in visual code năm 2024
Source: SonarLint

The SonarLint VS Code extension is used to find issues in the code even before they arise. It identifies security flaws and defects as you develop the code in VS Code and allows you to fix them before merging the changes. SonarLint has more than 1.2 million downloads, and its straightforward interface and functions are one of the main developer attractions.

Installation

In VS Code, press ctrl+p and execute the command ext install SonarSource.sonarlint-vscode. Or you can visit VS Code Marketplace, search for the SonarLint extension, and directly install it in your local VS Code application.

However, SonerLint extensions require some prerequisites like JRE 11+ to work properly. You can find more on prerequisites in the SonerLint documentation.

Features

  • Supports C++, C, Java, HTML, PHP, JavaScript, TypeScript, Python, and more.
  • Can connect to SonarQube and SonerCloud.
  • Supports PL/SQL analysis once connected with SonarQube.

Top 10 extensions for angular js in visual code năm 2024

Use the right property of Syncfusion Angular components to fit your requirement by exploring the complete UG documentation.

Read Now

10.Visual Studio Code Remote – SSH

Top 10 extensions for angular js in visual code năm 2024
Source: Visual Studio Code Remote – SSH

The Remote – SSH VS Code extension allows developers to use any remote PC with an SSH server as their IDE. Most importantly, it does not require the source code to be on your local machine. Instead, it directly executes commands and other VS IDE extensions on the remote computer. As Remote – SSH is highly useful, it has more than 12 million downloads.

Installation

In VS Code, press ctrl+p and execute the command ext install ms-vscode-remote.remote-ssh. Or you can visit VS Code Marketplace, search for the Remote – SSH extension, and directly install it in your local VS Code application.

Features

  • Supports multiple operations systems, including Windows, macOS, Ubuntu, Debian, and CentOS.
  • Allows you to access powerful remote workstations from your PC to create apps and software.
  • Instantly switches among different development environments without slowing down your local PC.
  • Works together on an existing IDE from various remote machines.

11.GitLens

Top 10 extensions for angular js in visual code năm 2024
Source: GitLens

GitLens is a fantastic open-source extension for VS Code that allows developers to visualize code authorship instantly. With GitLens, you can find out by whom, why, and when a change was made to a code line within seconds and navigate among different versions of the code instantly. It has more than 16 million downloads.

Installation

Visit VS Code Marketplace, search for the GitLens extension, and directly install it in your local VS Code application.

Features

  • Provides easy navigation across a file’s revision history.
  • Displays the author and commits of the most recent modification at the end of each line.
  • Offers rich sidebar view with commits view, repositories view, branches view, stashes, and more.
  • Supports integrations with GitHub, GitLab, Gitea, Gerrit, GoogleSource, Bitbucket, and Azure DevOps.

Top 10 extensions for angular js in visual code năm 2024

Be amazed exploring what kind of application you can develop using Syncfusion Angular components.

Try Now

12. Quokka

Top 10 extensions for angular js in visual code năm 2024
Source: Quokka.js

Quokka.js is another super useful VS Code extension for web developers for quick JavaScript and TypeScript prototyping. It immediately displays the results, inline console logs, expression values, and error messages as you modify the code. Ultimately, it speeds up the process of learning, prototyping, and testing the code. The Quokka.js extension has more than 1.8 million downloads.

Installation

In VS Code, press ctrl+p and execute the command ext install WallabyJs.quokka-vscode. Or you can visit VS Code Marketplace, search for the Quokka.js extension, and directly install it in your local VS Code application.

Features

  • You can easily explore, learn, and test JavaScript and TypeScript code.
  • CPU profiling, value explorer, live code coverage, and many more features.
  • Your JavaScript code runs in VS Code, WebStorm, or Sublime. This allows you to avoid context switching and take advantage of your accustomed editor environment and extensions.

13. Live Share

Top 10 extensions for angular js in visual code năm 2024
Source: Live Share

Live Share is a VS Code extension that provides in-the-moment developer collaboration. Users can share a session with another person, enabling them to collaborate on the server, debug sessions, and changing code. The Live Share extension has more than 9.3 million downloads.

Installation

In VS Code, press ctrl+p and execute the command ext install MS-vsliveshare.vsliveshare. Or you can visit VS Code Marketplace, search for the Live Share extension and directly install it in your local VS Code application.

Features

  • Developers can instantly exchange code samples with team members from the convenience of their preferred code editor.
  • Collaborative editing mode to let multiple developers edit a single file at once.
  • Collaborative debugging.
  • Access control options to lock files or folders.

Top 10 extensions for angular js in visual code năm 2024

See the possibilities for yourself with live demos of Syncfusion Angular components.

Try Now

14. Project Manager

Top 10 extensions for angular js in visual code năm 2024
Source: Project Manager

The Project Manager is a useful extension for project managers to use to oversee several DevOps projects on VS Code at once. Regardless of where the projects are located, you can use the Project Manager extension to access them from a single computer. The Project Manager extension has more than 2.6 million downloads.

Installation

In VS Code, press ctrl+p and execute the command ext install alefragnani.project-manager. Or you can visit VS Code Marketplace, search for the Project Manager extension, and directly install it in your local VS Code application.

Features

  • Save workspaces or folders as projects.
  • Create tags for your projects to organize them.
  • Identify deleted or renamed projects with ease.
  • Use a dedicated sidebar.
  • Automatically detect Git, Mercurial, or SVN repositories.

15. Polacode

Top 10 extensions for angular js in visual code năm 2024
Source: Polacode

The Polacode extension can be used to download code snippets as .png and .jpg images. These screenshots retain all of the current VS Code styles and code fonts. Polacode has more than 794,000 downloads and can be a handy tool for creating tutorials and sharing code.

Installation

In VS Code, press ctrl+p and execute the command ext install pnp.polacode. Or you can visit VS Code Marketplace, search for the Polacode extension, and install it in your local VS Code application.

Features

  • Resize the container or code snippet using the extension’s dragging capability.
  • Modify how an image appears with a set of commands like polacode.shadow, polacode.target, polacode.backgroundColor.

Conclusion

This article discussed 15 VS Code extensions you can use to improve your programming skills and productivity. However, you should not install a bunch of extensions in your editor without an actual need. You need to understand your requirements and be selective about your extensions. I hope my suggestions help you choose the best VS Code extensions for your project. Thank you for reading!

Syncfusion’s Essential JS 2 is the only suite you will need to build an app. It contains over 65 high-performance, lightweight, modular, and responsive UI components in a single package. Download a free trial to evaluate them today.

Please let us know if you have any queries in the comments section below. You may also get in touch with us via our support forum, support portal, or feedback portal. We are delighted to assist you!

What are the useful extensions for angular in VS Code?

I recommend using two extensions, Angular Snippets (Version 13) and Angular 10 Snippets — TypeScript, Html, Angular Material, ngRx, RxJS & Flex Layout.

Which extension is best for JavaScript in VS Code?

Quokka. This extension is used for testing JavaScript code in the Visual Studio Code editor itself instead of checking it out in the browser console.

How to run Angular JS code in Visual Studio Code?

Go to Terminal tab, then go to New Terminal in VSCode. This will open command line in Visual Studio Code. Create and navigate to location on your hard drive where you created your Angular project. On the command line, use cd command to navigate to the directory where you want any of your Angular projects to be located.

Is VS Code good for angular?

Angular uses TypeScript as its main programming language. The Visual Studio Code editor supports TypeScript IntelliSense and code navigation out of the box, so you can do Angular development without installing any other extension.