Reputation: 7985
In netbeans you can store some code as template and call it back whenever you like by typing a specific word and TAB..is there a similar emacs feature, and if yes how can I use it? thanks in advance!
Upvotes: 1
Views: 181
Reputation: 7048
I used to use ELSE Mode very heavily when I was doing a lot of programming by voice.
Upvotes: 0
Reputation: 66109
There are a couple of libraries that come with emacs that provide this kind of functionality. SkeletonMode and TempoMode both allow you to insert templates into your code. They can be combined with AbbrevMode to automatically trigger on keywords, like in NetBeans.
Yasnippet is a much more full-featured library to do the same, bundled with lots of defaults for various languages. It is not currently bundled with emacs.
Upvotes: 5
Reputation: 41078
Yes, take a look here : http://code.google.com/p/yasnippet
In addition, you can watch this video : http://www.youtube.com/watch?v=76Ygeg9miao
Upvotes: 3