Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Java shortcut for "printf"?

Tags:

java

eclipse

When coding in Java in Eclipse, is there a shortcut similar to typing "syso" and pressing CTRL+Space for System.out.println(), but for printf instead of println?

like image 723
Cole Avatar asked Jan 20 '12 23:01

Cole


1 Answers

you can create your own using eclipse template functionality.

To create your own template take a look here Window->Preferences->Java->Editor->Templates.

For example the sysout functionality has this template:

System.out.println(${word_selection}${});${cursor}

you can create similar for System.out.print()

like image 164
RanRag Avatar answered Oct 07 '22 19:10

RanRag