A collection of useful live templates that you can use within your Rubymine or IntelliJ IDEA installation when you develop your websites with Padrino and Ember.js.
##Install Simply clone the repository to your Rubymine's config/templates folder which can be found here.
Live templates are stored in the following location:
-
Windows:
<your home directory>\.<product name><version number>\config\templates
-
Linux:
~/.<product name><version number>/config/templates
-
OS X:
~/Library/Preferences/<product name><version number>/templates
Once you found it, cd
into it, then (in Ubuntu)
$ git clone https://github.com/onecoinim/rubymine-live-templates ~/yourpath/
$ cd ~/yourpath/rubymine-live-templates
$ cp *.xml ~/.<product name><version number>/config/templates
$ restart Rubymine
##Currently included live templates
The follow doc is generated by ./allCurrentTemplates.sh
__
: "<%= __('key') %>"re
: "<%= var %>"r
: "<%- var %>"
a
: "Inserts actions:{} expression"c
: "Inserts case expression":f
: "Inserts property name: function(){}.property() expression"g
: "Inserts this.get() method"ife
: "Inserts if else expression"if
: "Inserts if(){} expression":
: "Inserts property name: '' expression"
if
: "<% if %> <% end %>"re
: "<%= %>"r
: "<% %>"
b
: "Inserts button view"e
: "Inserts each expressions"if
: "Inserts if() expression"i
: "Inserts {{input}} view"{
: "Inserts {{}}"lti
: "Inserts {{link-to}} inline block"lt
: "{{#link-to}} {{/link-to}}"sc
: "Inserts setupController() method in route"s
: "Inserts view 'select'"
a:
: "action: function(req, res){}"
:
: ":key => value"l
: "=>"utf
: "Inserts encoding utf-8"- ...
##Contribution
- Fork
- Add your own live templates
- Update the documentation by using the
./allCurrentTemplates.sh
template - Send me a pull request
- Wait
- Profit