This extension allows you to add Angular2 typescript files including snippets to your VS Code project.
Inspired by [Angular-CLI] (https://github.com/angular/angular-cli), Dominik Kundel's - Advanced New File - Visual Studio Code Extension and John Papa's Angular 2 TypeScript Snippets for VS Code.
Forked fromSebastian Baar VS Code Add Angular2 Files
- Integrated angular-cli for file generation
Right click on a file or a folder in your current project. You can find multiple options been added to the context menu:
Menu Options |
---|
New Component |
New Directive |
New Pipe |
New Service |
New Module |
Menu Options |
---|
New Class |
New Interface |
New Enum |
The naming of the files as well as the (boilerplate) snippets are based on the official Angular2 Style Guide
- Install Visual Studio Code 1.5.0 or higher
- Launch Code
- From the command palette
Ctrl
-Shift
-P
(Windows, Linux) orCmd
-Shift
-P
(OSX) - Select
Install Extension
- Type
angular2 typescript
and press enter - Reload Visual Studio Code
Important: This extension due to the nature of it's purpose will create files on your hard drive and if necessary create the respective folder structure. While it should not override any files during this process, I'm not giving any guarantees or take any responsibility in case of lost data.
MIT