为什么sysout不行? [英] Why sysout won't work?

查看:174
本文介绍了为什么sysout不行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我检查了我的Eclipse中的首选项设置,所有这一切都设置为默认的sysout选项,但是当我在eclipse中键入sysout时,它不会自动进入 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆