Eclipse - ADT插件不能自动完成xml

时间:2014-02-24 10:00:14

标签: android eclipse macos installation xml-layout

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

enter image description here

5 个答案:

答案 0 :(得分:1)

转到

Eclipse -> Preferences -> XML -> XML Files - > Editor -> Content Assist 

并勾选所有proposals复选框以允许此操作。

编辑:同时勾选Automatically make suggestionsInsert single proposals automatically复选框。

enter image description here

答案 1 :(得分:0)

打开首选项,在搜索类型XML中,您会在左侧窗格中找到XML层次结构,在编辑器下您将获得内容辅助。只需勾选此页面中的所有方框,您就可以开始了!

答案 2 :(得分:0)

窗口---&gt;首选项-----&gt;常规-------&gt;键,查找内容辅助并将属性绑定设置为 cmd +空格,属性 在结构化文本编辑器中编辑时,如果仍无法正常工作,请右键单击您的xml文件,选择打开方式,尝试使用< strong> Android菜单编辑器。祝你好运。

答案 3 :(得分:0)

我找到了解决方案: 我需要在我的mac SystemPref中取消选择 - &gt;键盘 - &gt;快捷键有一个命令“选择上一个输入源”

答案 4 :(得分:0)

您想要的只是输入的代码提示。

Eclipse - &gt; 偏好设置 - &gt; XML - &gt; XML文件 - &gt; 编辑 - &gt; 内容辅助

然后使用

输入“提示插入这些字符时的提示
@+<=:abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

image to show where to input

相关问题