如何在MyEclipse中设置自动提示
2014-03-19 16:43
176 查看
写struts2的struts.xml配置文件时,没有提示功能,可以这样解决:
1.打开window-preferences-myeclipse enterprise workbench-files and editors-xml-xml catalog,
点 add..,出现一对话框,location栏选file system,找到struts-2.0.14-all\struts-2.0.14\src\core\src\main\resources目录下的 struts-2.0.dtd文件,打开,然后key type 选择uri,下面key值填 http://struts.apache.org/dtds/struts-2.0.dtd,点击OK,这样再次打开struts.xml时应该就有提示了。
2.当你输入元素后,如果没有属性提示,比如输入<action name="" ></action>,不能再继续提示action中的属性的话,需要做如下修改:
打开window-preferences-general-keys,在右边找到content Assist这一栏,如果这一栏中binding下面有值,点击remove binding,然后在下面的binding栏,选择另一个快捷键,比如‘alt+,’,点击OK。
重新打开struts.xml文件,需要属性提示时,按所设置的快捷键,就会出现属性提示。
如果还是没有用的话 :
可能是源文件路径里有中文,改成英文就OK了!
1.打开window-preferences-myeclipse enterprise workbench-files and editors-xml-xml catalog,
点 add..,出现一对话框,location栏选file system,找到struts-2.0.14-all\struts-2.0.14\src\core\src\main\resources目录下的 struts-2.0.dtd文件,打开,然后key type 选择uri,下面key值填 http://struts.apache.org/dtds/struts-2.0.dtd,点击OK,这样再次打开struts.xml时应该就有提示了。
2.当你输入元素后,如果没有属性提示,比如输入<action name="" ></action>,不能再继续提示action中的属性的话,需要做如下修改:
打开window-preferences-general-keys,在右边找到content Assist这一栏,如果这一栏中binding下面有值,点击remove binding,然后在下面的binding栏,选择另一个快捷键,比如‘alt+,’,点击OK。
重新打开struts.xml文件,需要属性提示时,按所设置的快捷键,就会出现属性提示。
如果还是没有用的话 :
可能是源文件路径里有中文,改成英文就OK了!
相关文章推荐
- Myeclipse代码提示及如何设置自动提示
- Myeclipse代码提示及如何设置自动提示
- MyEclipse如何设置自动提示
- Myeclipse代码提示及如何设置自动提示
- Myeclipse代码提示及如何设置自动提示
- myeclipse8.5 如何设置自动提示
- Myeclipse代码提示及如何设置自动提示
- Myeclipse代码提示及如何设置自动提示(转载)
- Myeclipse代码提示及如何设置自动提示
- Myeclipse中如何取消自动提示和设置自动提示
- eclipse/myeclipse中设置自动提示功能
- eclipse代码自动提示设置、如何配置eclipse的代码自动提示功能
- 如何让myeclipse自动提示内容
- Java_web初学笔记之<MyEclipse自动提示设置 空格和等号不补全>
- 在MyEclipse8.6中设置jQuery自动提示
- myeclipse6.5设置代码自动提示
- MyEclipse 如何设置代码提示功能
- 怎样设置才能在MyEclipse中让struts.xml文件出现自动提示的功能
- 如何在 Myeclipse 中设置代码提示
- myeclipse中自动提示的设置