This extension for Visual Studio Code adds snippets for Angular 1 for JavaScript and TypeScript.
Type part of a snippet, press enter
, and the snippet unfolds.
ng1component // creates an Angular component
ng1controller // creates an Angular controller
ng1directive // creates an Angular directive
ng1factory // creates an Angular factory
ng1module // creates an Angular module
ng1service // creates an Angular service
ng1filter // creates an Angular filter
Alternatively, press Ctrl
+Space
(Windows, Linux) or Cmd
+Space
(OSX) to activate snippets from within the editor.
- Install Visual Studio Code 0.10.1 or higher
- Launch Code
- From the command palette
Ctrl
-Shift
-P
(Windows, Linux) orCmd
-Shift
-P
(OSX) - Select
Install Extension
- Choose the extension
- Reload Visual Studio Code