use Live templates like emmet works

using emmet in html, I can type .forexampleclassname and I get: <div class="forexampleclassname"></div>

is it possible to create Live template like that?

for example when I type: ..mycustomtext   and hit TAB, I want to get: console.log('mycustomtext');

I tried something like this :)

1 comment
Comment actions Permalink

This is what the postfix templates can be used for; actually we have a predefined template for console.log: just enter mycustomtext.log and hit Tab - it will be transformed to console.log(mycustomtext);. But you can define your own templates in Settings | Editor | General | Postfix Completion


Please sign in to leave a comment.