简体   繁体   English

我想了解Mac OS上Eclipse中的自动补全和快捷方式

[英]I want to know about autocompletion and shortcuts in eclipse on Mac os

I'm having issues with my macbook , in windows I was using "syso+control+space" to write this statement "System.out.println()" but in mac It doesn't work even with command button it will show up Spotlight search of the Mac . 我的Macbook遇到问题,在Windows中,我使用“ syso + control + space”编写此语句“ System.out.println()”,但在mac上,即使使用命令按钮也无法正常工作,它将显示Mac的Spotlight搜索。 so can any one help me with it and where can I find all the shortcuts and autocompletion in eclipse . 所以有人可以帮助我吗,我在哪里可以找到eclipse中的所有快捷方式和自动完成。

Thanks. 谢谢。

Auto complete (Content Assist) is Ctrl + Space on Mac OS X. 在Mac OS X上,自动完成(内容辅助)是Ctrl + 空格键

Look in the Preferences in 'General > Keys' for the key bindings. 在“常规”>“键”中的“首选项”中查找键绑定。

Windows: 视窗:

Window > Preferences > General > Keys

Mac: 苹果电脑:

Eclipse > Preferences > General > Keys

But you might also want to take a look at or even change the templates you can use (for-each statement etc.): 但是您可能还想看看甚至更改可以使用的模板(for-each语句等):

Preferences > Java > Editor > Templates

Also check if the templates are activated at all: 还要检查模板是否被完全激活:

Preferences > Java > Editor > Advanced

You need to have at least the Java Proposals activated 您至少需要激活Java Proposals

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM