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

About the Author

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.

Comments

avatar
3 Comment threads
2 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
5 Comment authors
CODERKeerthiCipherHermitoJ Y Recent comment authors
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!

Cipher
Guest
Cipher

Thanks man

J Y
Guest
J Y

Wow, this is super userful XD.