开发者

emacs feature similar to netbeans templates?

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!


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.


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


I used to use ELSE Mode very heavily when I was doing a lot of programming by voice.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜