用于XML内容辅助的Eclipse Android快捷方式

时间:2023-01-12 23:16:39

While editing an XML layout file, I would like Eclipse to display content proposals.

在编辑XML布局文件时,我希望Eclipse显示内容提议。

E.g. when I type in "marg" and press Cmd+Space, it should offer me a dropdown list of

例如。当我输入“marg”并按下Cmd + Space时,它应该为我提供一个下拉列表

layout_marginLeft, layout_marginRight etc.

layout_marginLeft,layout_marginRight等。

How can I set this keybinding?

如何设置此键绑定?

(On Mac it is by default Ctrl+Space, but I want it to be Cmd+Space)

(在Mac上它默认为Ctrl + Space,但我希望它是Cmd + Space)

2 个解决方案

#1


0  

Command+Space usually brings up Spotlight. You'll have to turn this off first.

Command + Space通常会带来Spotlight。你必须先关闭它。

  1. Go to System Preferences / Spotlight.
  2. 转到系统偏好设置/ Spotlight。

  3. Disable or remap Command+Space.
  4. 禁用或重新映射Command + Space。

Then in Eclipse:

然后在Eclipse中:

  1. Go to Eclipse / Preferences.
  2. 转到Eclipse / Preferences。

  3. Select General / Keys.
  4. 选择常规/键。

  5. Select Content Assist in the list.
  6. 在列表中选择内容辅助。

  7. Delete the ^Space in the binding textbox.
  8. 删除绑定文本框中的^ Space。

  9. Type in Command+Space.
  10. 输入Command + Space。

#2


0  

If you go to

如果你去

Eclipse > Preferences > Keys

find the option 'Content Assist' and changing the binding to cmd + space.

找到“内容辅助”选项并将绑定更改为cmd +空格。

#1


0  

Command+Space usually brings up Spotlight. You'll have to turn this off first.

Command + Space通常会带来Spotlight。你必须先关闭它。

  1. Go to System Preferences / Spotlight.
  2. 转到系统偏好设置/ Spotlight。

  3. Disable or remap Command+Space.
  4. 禁用或重新映射Command + Space。

Then in Eclipse:

然后在Eclipse中:

  1. Go to Eclipse / Preferences.
  2. 转到Eclipse / Preferences。

  3. Select General / Keys.
  4. 选择常规/键。

  5. Select Content Assist in the list.
  6. 在列表中选择内容辅助。

  7. Delete the ^Space in the binding textbox.
  8. 删除绑定文本框中的^ Space。

  9. Type in Command+Space.
  10. 输入Command + Space。

#2


0  

If you go to

如果你去

Eclipse > Preferences > Keys

find the option 'Content Assist' and changing the binding to cmd + space.

找到“内容辅助”选项并将绑定更改为cmd +空格。