在Eclipse中设置自动完成快捷方式 [英] Setting auto complete shortcuts in Eclipse
问题描述
在Eclipse中编写Java时,我可以键入 syso
,然后按Ctrl +空格自动完成此操作,并获取 System.out.println );
。我想知道Eclipse中是否有某些设置允许我设置此表单的其他快捷方式。 (例如,我想键入 syscur
并将此自动完成到 System.currentTimeMillis();
When programming Java in Eclipse, I can type syso
and press control+space to auto-complete this and get System.out.println();
. I was wondering if there are settings somewhere in Eclipse to allow me to set other shortcuts of this form. (For instance, I'd like to type syscur
and have this auto-complete to System.currentTimeMillis();
.)
推荐答案
您可以在此处执行此操作:窗口
- > code>首选项 - > Java
- > 编辑器
- > 模板
。您还可以添加一个模板视图,您可以在窗口中找到
- > 显示视图
- > 其他
- >搜索模板。
You can do this here: Window
-> Preferences
-> Java
-> Editor
-> Templates
. You can also add a Template View, which you find at Window
-> Show View
-> Other
-> Search for Templates.
这篇关于在Eclipse中设置自动完成快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!