Intellij IDEA – System.out.println shortcut

In IDEA, you can type sout and press Tab to generate System.out.println automatically.

Tips : To show all shortcuts, press CTRL + J

References

  1. Intellij IDEA – Code completion
  2. Intellij IDEA – default static void main shortcut
author image

mkyong

Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities. Read all published posts by

Comments

avatar
newest oldest most voted
Hermito
Guest
Hermito

You can also write variable.sout . This will expand to System.out.println(variable);.

Obviously, variable has to exist in the current scope. 🙂

Keerthi
Guest
Keerthi

Thank you 🙂

CODER
Guest
CODER

WOOOOOOW!

J Y
Guest
J Y

Wow, this is super userful XD.

Cipher
Guest
Cipher

Thanks man