为什么sysout不行? [英] Why sysout won't work?
问题描述
System.out.println()
。 我已经检查了几个其他相关的主题,提到了 ctrl + space 。
这是我计算机上输入法的快捷方式。我不知道这是否与我无法使用sysout有关。如果没有,请让我知道如何让我的sysout工作。
如果是,请通知我如何重置'ctrl + space'或为内容助理设置其他快捷方式。
您必须为 sysout
(或等效地: Ctrl + Space > syso
)快捷方式在Eclipse中工作,因为 sysout
不是Java的一部分,恰恰相反:它是Eclipse中引入的缩写仅在您按 Ctrl + Space 后展开为 System.out.println()
。
顺便说一下, syserr
(或等效地: syse
)将扩展到按 Ctrl + Space 后,System.err.println()
I checked the preferences settings in my Eclipse, it's all set to default with sysout option on, but when I typed sysout in eclipse, it won't automatically go into System.out.println()
.
I've checked several other related topics which mention ctrl + space.
It is a shortcut for input method on my computer. I don't know if this is related to my unable to use the sysout. If not, please let me know how I can get my sysout working.
If yes, please kindly let me know how I can reset 'ctrl + space' or set other shortcut for content assistant.
You have to press Ctrl + Space for the sysout
(or equivalently: syso
) shortcut to work in Eclipse, as sysout
is not part of Java in anyway, on the contrary: it's an abbreviation introduced in Eclipse that only works after you press Ctrl + Space and expands to System.out.println()
.
By the way, syserr
(or equivalently: syse
) will expand to System.err.println()
after pressing Ctrl + Space.
这篇关于为什么sysout不行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!