MyEclipse中的快捷键
过去两年我一直使用 IntellJ idea 进行开发,但现在使用 MyEclipse。我使用 psvm + Tab
短键生成 public static void main(String[] args)
方法,我想知道 MyEclipse 中存在这个短键的同义词吗? (我在 MyEclipse 的 Preferences/General/Keys
中找不到或定义新的快捷键)
I used IntellJ idea for development to 2 past year but now using MyEclipse. I use psvm + Tab
short key for generate public static void main(String[] args)
method, I want know synonymous of this short key exist in MyEclipse? (I couldn't find or defined new short key in MyEclipse in Preferences/General/Keys
)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 MyEclipse 和 Eclipse 中,
Ctrl+Spacebar
用于查看自动完成建议。在当前课程中,只需开始输入“main”,当您输入m,a,...
字母时,随时使用Ctrl + 空格键
查看建议/自动完成选项。您将在列表顶部找到main方法
。另一种选择是检查
public static void main(String[] args)
复选框,以检查 “您想要创建哪个方法存根?” 的问题,该问题在“新班级”创建事件时打开的对话框窗口。尝试一下。In MyEclipse and also in Eclipse,
Ctrl+Spacebar
is used to view autocomplete suggestions. In your current class, just start to type "main", as you enterm,a,...
letters, useCtrl + Spacebar
anytime to see suggestions/autocompleting options. You will findmain method
at the top of the list.Another option is having checkbox of
public static void main(String[] args)
checked for the question of "Which method stubs would you like to create?" that is visible in the dialog window opening upon your "new class" creation event. Try it.创建新类的向导提供了在类主体内创建
public static void main(String[] args)
的可能性。只需查看向导表单底部的复选框即可。The wizard to create a new class offers the possibility to have a
public static void main(String[] args)
created inside the classes body. Just look at the checkboxes at the bottom of the wizards form.