What is the Eclipse shortcut for “public static void main(String args[])”?
问题 I know a cool shortcut for System.out.println() : sysout Ctrl + Space . Is there something similar for public static void main(String args[]) ? 回答1: This is just main and Ctrl - Space . 回答2: In Eclipse, select preferences. In preferences, look for Java/Editor/Templates. Here you will see a list of all of them. And you can even add your own. 回答3: Just type ma and press Ctrl + Space , you will get an option for it. 回答4: As bmargulies mentioned: Preferences>Java>Editor>Templates>New... Now, type