In this post, we will see about System.out.println shortcut in Eclipse.
While working on any java program, you may need to print output on the console. Although log4j or java.util.logger is recommended for logging any information for production code, but System.out.println
is most preferred way to print anything on console quickly.
You can use eclipse shortcut for System.out.println()
to use it efficiently as you may need to write on console many times while writing java program.
Eclipse shortcut for System.out.println
There are two eclipse shortcuts, you can use to write System.out.println.
- You can type
syso
and pressctrl
+space
to autocomplete it.
- You can also use
sysout
and pressctrl
+space
to autocomplete it.
All eclipse templates
if you want to explore list of all templates provided by eclipse.
You can go to Window
->Preferences
->Java
->Editor
->Templates
That’s all about System.out.println shortcut in eclipse.