Shortcut to create a method stub in eclipse
问题 I think some shortcut to create a method stub in eclipse might be useful. Does anyone know how to do it? 回答1: Type public_method (see Java/Editor/Templates in preferences for more options) or method name and press ctrl + space . 回答2: In Addtion to the accepted answer: Typing pu for a public method (with returntype and name )is enough: Type pu and then hit CTRL + SPACE and then ENTER . 回答3: Type your method name and hit Ctrl + Space . Also worth noting is, type 'test' and hit Ctrl + Space and