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.
-
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) orshift+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
-
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.
-
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
-
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.
-
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 orCtrl+Opt+o
on MacOS).
- 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.
-
vscode-icons - my favorite collection of icons for VSCode projects!
-
Git History (git log) - allows you to view git history with graph and details
-
snippet-creator - helps you creating code snippets (saves snippets in the User Snippets in VSCode)
Happy Coding!