当我输入“android:”时,我只会在我的 xml 布局中获得自动完成功能,我想在按下 cmd+space 时获取它。我正在使用 Mac

当我输入“android:”时,我只会在我的 xml 布局中获得自动完成功能,我想在按下 cmd+space 时获取它。我正在使用 Mac

去
Eclipse -> Preferences -> XML -> XML Files - > Editor -> Content Assist
并勾选所有proposals复选框以允许这样做。
编辑:也勾选Automatically make suggestions 和Insert single proposals automatically复选框。

I found the solution: I needed to unselect in my mac SystemPref --> keyboard-->shortcuts there was a command "select the previous input source"
Window--->Preferences----->General----->Keys,找到 Content Assist 并将属性Binding设置为cmd + space,并将属性When as Editing in Structured Text Editors,如果它仍然不起作用,右键单击您的 xml 文件,选择打开方式,尝试使用Android 菜单编辑器。祝你好运。
打开 Preferences 并在搜索类型 XML 中,您将在左侧窗格中找到 XML 层次结构,在编辑器下您将获得内容帮助。只需勾选此页面中的所有框,您就可以开始了!