Window–>preference–>Java–>Editor–>Templates–>new 2.进入新的页面 在name中输入快捷输入的表达式,在Pattern中输入需要快捷输入的完整的程序代码,然后点击OK,就好了。