angular-file-templates

0.2.8 • Public • Published

Based on

This extension is based on sunray97's newfile-from-template

Angular-File-Templates

Angular-Template-Files is an extension for Brackets editor. Provides some common Angular template files to create your new Angular components in your desired path and indicating the module to attach it.

Usage

A new "New as" item will be added in your Brackets editor. There you can find templates that are available so far. You can also find a new "New from template" item where you will get to a more general form to create your file. All these items have their corresponding hotkey. Once you have selected any of the options you will be prompted for the path (the extension will add .controller.js, .service.js, etc) and the module if needed. You can add a file using the contextual menu (right-click) on the files area.

Configuration

You can set the author name of your files by setting the corresponding option either in your global or project preferences file.

i.e. "angular-file-templates.author" : "John Doe john.doe@mail.com"

You can tweak the templates that you can find in the corresponding extension folder under the config folder (i.e. /home/johndoe/.config/Brackets/extensions/user/angular-file-templates/config)

Don't rename the files you find there in order to keep the extension working.

Package Sidebar

Install

npm i angular-file-templates

Weekly Downloads

6

Version

0.2.8

License

MIT

Last publish

Collaborators

  • natete