File Templates and Snippets

Use file templates or snippets to help follow consistent styles and patterns. Here are templates and/or snippets for some of the web development editors and IDEs.

Sublime Text

[Style Y250]
  • AngularJS snippets that follow these styles and guidelines.

    • Download the Sublime Angular snippets
    • Place it in your Packages folder
    • Restart Sublime
    • In a JavaScript file type these commands followed by a TAB
    ngcontroller // creates an Angular controller
    ngdirective // creates an Angular directive
    ngfactory // creates an Angular factory
    ngmodule // creates an Angular module
    

Visual Studio

[Style Y251]
  • AngularJS file templates that follow these styles and guidelines can be found at SideWaffle

    • Download the SideWaffle Visual Studio extension (vsix file)
    • Run the vsix file
    • Restart Visual Studio

WebStorm

[Style Y252]
  • AngularJS snippets and file templates that follow these styles and guidelines. You can import them into your WebStorm settings:

    ng-c // creates an Angular controller
    ng-f // creates an Angular factory
    ng-m // creates an Angular module