简体   繁体   中英

Eclipse Java shortcut for “printf”?

在Eclipse中使用Java进行编码时,是否存在类似于键入“syso”并按下CTRL + Space for System.out.println()的快捷方式,但对于printf而不是println?

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()

You can make your own for printf :

In preferences choose Java->editor->templates .

我没有在默认的完成模板中看到一个,但您可以创建自己的模板

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM