Eclipse templates

Eclipse templates

you should know its default hotkey is ctrl + space,but it maybe be used by other software.

and you can edit the hot key map,  在keys设定中 Content Assist 的设定默认 alt + / ,ok!!!

1,在window->preferences->java->editors->templates中定义模板

编辑的时候,录入模板的名字,然后alt+/

比如,录入runnable,敲alt+/,能看到什么?

2,向上(下)复制一行

ctrl+alt+up(down)

3,向上(下)移动一行

alt+up(down)

4,

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章