How do I expand code templates in Eclipse when using the emacs keybindings?
Is there a hotkey for turning selected code into a template?
views:
204answers:
1
A:
apparently for C/C++ you have to enable templates in
window->preferences->C/C++->Editor->content-assist->advanced.
uncheck everything except templates and check templates in both the upper and lower boxes.
then in an editor type a template name like
for
and hit Alt-/ to expand it into
for (var = 0; var < max; ++var) {
}
use tab to fill in the blanks
NOTE: eclipse 3.5
Arthur Ulfeldt
2009-08-31 21:15:06