use Live templates like emmet works Follow
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 :)
Please sign in to leave a comment.
This is what the postfix templates can be used for; actually we have a predefined template for
console.log
: just entermycustomtext.log
and hitTab
- it will be transformed toconsole.log(mycustomtext);
. But you can define your own templates in Settings | Editor | General | Postfix Completion