Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 1.39 KB

README.md

File metadata and controls

22 lines (12 loc) · 1.39 KB

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 [email protected]"

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.