ng-snippets is an extension generates HTML snippets of all Angular components within a project.
ng-snippets is extreamly easy to use. Once the extension is installed just run the "ng snippet":
- ctl + shift + p
- search & run 'ng snippets'
Now you are ready to go. Intellisense will be able to autocomplete any Angular component template within your project.
- start typing your Angular component selector in any html file
- select the snippet from the snippets dropdown
Once you have run ng-snippets your project will have a vscode snippets file located:
.vscode/ng-project.code-snippets
- @Input() that use getter/setter functions are not formatted properly
- update to README file
- add project name from package.json as a snippet prefix
- do not generate snippet for a component without a selector
- better support for setter functions
- fix a bug where @Input and @Outputs set with private/public decorators weren't formatted properly
- create .vscode directory if it doesn't already exist
Initial release of ng-snippets.