System.out.println shortcut in eclipse

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 press ctrl + space to autocomplete it.
System.out.println shortcut in eclipse
  • You can also use sysout and press ctrl + space to autocomplete it.
System.out.println in eclipse

All eclipse templates

if you want to explore list of all templates provided by eclipse.
You can go to Window->Preferences->Java->Editor->Templates

System.out.println in eclipse

That’s all about System.out.println shortcut in eclipse.

Was this post helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *