I started to learn Java in my computer science studies, and I need a lot to use printing methods System.out.print();
, System.out.println();
, and System.out.printf();
, I searched in Google and I didn't find the right answer maybe cause I don't know how to ask it. Anyway, I'm looking for a way to set up some ready codes to appear when I write a certain keyword and hit tab like in Sublime text in HTML we can just write "lorem" and press Tab and it will display the Lorem Ipsum paragraph.
Thank you for your help guys
2 Answers
They're called Templates, and are activated as part of content assist with Ctrl+Space. You'll find the page for them in your Preferences under Java->Editor->Templates.
Write sysout
and then press Ctrl + spacebar System.out.println();
will be printed
sysout
that completes toSystem.out.println
.