Why sysout won't work?

前端 未结 15 1119
死守一世寂寞
死守一世寂寞 2020-12-30 10:44

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 S

15条回答
  •  一向
    一向 (楼主)
    2020-12-30 11:16

    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.

提交回复
热议问题