jQuery live templates for IntelliJ IDEA and Webstorm. All templates are ECMAScript 5 compliant.
Download settings.jar
and import it using File->Import Settings.
List with available templates abbreviations:
jqapp
- Generates a jQuery app modulejqpluginp
- Creates a prototypical jQuery plugin
Entry point for your jQuery app. You can add appwide configurations and methods.
Creates a prototypical jQuery plugin with a controller. The controller will be exposed in data
.
If you need to call a method you can either get the controller or use data
.
Example:
var $example = $('#example').example();
var exampleCtrl = $example.data('example');
exampleCtrl.demo(1); // Calls method on the controller
$example.data('demo', 1); // Calls the same method on the controller
- Choose File. | Import Settings from the main menu.
- In the Import File Location dialog box that opens select the desired archive.
- In the Select Components to Import dialog box that opens specify the settings to be imported, and click OK. By default, all settings are selected.