netbeans like typing shortcut code in eclipse
e.g. psvm press tab get public static void main
sout is for System.out.println();
https://netbeans.org/project_downloads/www/shortcuts.pdf please refer page 2.
This kind of shortcuts I am looking for.
netbeans like typing shortcut code in eclipse
e.g. psvm press tab get public static void main
sout is for System.out.println();
https://netbeans.org/project_downloads/www/shortcuts.pdf please refer page 2.
This kind of shortcuts I am looking for.
type sysout
and then press ctrl +space
These kind of shortcuts are called Code Templates in eclipse (and also in Netbeans by the looks of the pdf that you refer in your question). Here are the common ones
"sysout" + ctrl + space --> System.out.println()
"syserr" + ctrl + space --> System.err.println()
"systrace" + ctrl + space ---> System.out.println("OwnerClass.CurrentMethod()")
... bascially prints the current method to standard out.
If you forget them at any time just type sys
and hit ctrl+space, and you will get these in the auto-complete menu like this:
Also checkout this awesome SO question addressing this question for other common code templates (other than System.out.println()
): Useful Eclipse Java Code Templates
Create your own shortcuts: How to add shortcut keys for java code in eclipse; Effective Eclipse: Don't write the code, generate it
As others mentioned short cut for System.out.println()
is to type sysout
and press ctrl+space bar.
But there are other helpful shortcuts in eclipse which you can use. You cna check them by going to eclipse-> Click help -> Key Assist.