如何在 Eclipse for Android 中更改 Control+Space 自动完成快捷键
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23259054/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to change the Control+Space autocomplete shortcut keys in Eclipse for Android
提问by Suragch
When I am in an Android xml file (an activity menu, for example) and type
当我在 Android xml 文件(例如活动菜单)中并输入
android:
then autocomplete pops up and I can select an option. However, if I have something like
然后自动完成弹出,我可以选择一个选项。但是,如果我有类似的东西
android:showAsAction=""
with my cursor inside the quotes, then I don't get an autocomplete for options inside the quotes. I've heard that pressing Control+Space should do that but on my computer Control+Space is used to switch the language input method. Is there a way in Eclipse to change this shortcut key?
将光标放在引号内,然后我不会自动完成引号内的选项。我听说按 Control+Space 应该可以,但在我的电脑上 Control+Space 用于切换语言输入法。Eclipse 中有没有办法更改这个快捷键?
回答by adneal
To change your keyboard shortcuts go to:
要更改键盘快捷键,请访问:
- Window
- Preferences
- General
- Keys
- 窗户
- 喜好
- 一般的
- 钥匙
From there you can filter the list to find "content assist" and assign the value you'd like.
从那里您可以过滤列表以查找“内容辅助”并分配您想要的值。