如何在 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:40:53  来源:igfitidea点击:

How to change the Control+Space autocomplete shortcut keys in Eclipse for Android

androideclipseautocomplete

提问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:

要更改键盘快捷键,请访问:

  1. Window
  2. Preferences
  3. General
  4. Keys
  1. 窗户
  2. 喜好
  3. 一般的
  4. 钥匙

From there you can filter the list to find "content assist" and assign the value you'd like.

从那里您可以过滤列表以查找“内容辅助”并分配您想要的值。

Example

例子