Eclipse - Ctrl-空格键生成“instanceof”
在 Netbeans 中,如果我在以下条件之一按 Ctrl-space:
- 在字段之后 + 至少一个空格;
- 或者在返回值的方法之后(不是
void
);
然后 NetBeans 生成 instanceof
。有这个功能吗?或者我如何在 Eclipse 中配置它?
谢谢:-)
已编辑
抱歉,我已经很长时间没有使用 NetBeans 了。但如果我没记错的话,上面至少有两个条件是对的。
In Netbeans, if I press Ctrl-space in one of these conditions:
- after a field + at least one space;
- or after a method which returns a value (not
void
);
Then NetBeans produces instanceof
. Is there that feature, or how can I configure it in Eclipse?
Thanks :-)
Edited
I'm sorry, it's a long time I haven't used NetBeans. But if I remember right, at least two above conditions are right.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道这可以配置,除了创建您自己的文本模板(在首选项中搜索“模板”)。
对我来说,
if(
fieldin
Ctrl+Space 有效。并且可能会提出功能请求。
I'm not aware that this can be configured, except maybe creating your own text template (search for "templates" in the preferences).
For me,
if(
fieldin
Ctrl+Space works.And probably file a feature request.