[英]Why doesn't sysout work?
I've been using eclipse for a while learning java but when I type sysout it generally shows println, but now its showing 我一直在使用eclipse学习Java一段时间,但是当我键入sysout时,它通常显示println,但是现在显示
private void sysout()
when it's supposed to show 当它应该显示时
System.out.println();
anybody know what's wrong? 有人知道怎么了吗?
The completion to use in Eclipse is syso
, Ctrl + Space . 在Eclipse中使用的完成是syso
, Ctrl + Space 。 This is context-sensitive and needs to be used in a place where a System.out.println
call is valid (ie in a method, constructor, initializer block, or lambda) 这是上下文相关的,需要在System.out.println
调用有效的地方使用(即,在方法,构造函数,初始化程序块或lambda中)
键入syso
然后按ctrl-space
作为快捷方式
Type "sysout" or "sys" and press ctrl+space
. 输入“ sysout”或“ sys”,然后按ctrl+space
。 Suggesation list will show where you will find sysout -> System.out.println(). 建议列表将显示您在哪里找到sysout-> System.out.println()。 Select that. 选择那个。 If your write sysout and press ctrl+space
then it will directly write System.out.println(). 如果您写入sysout并按ctrl+space
则它将直接写入System.out.println()。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.