eclipse里jsp问题 eclipse里jsp Ctrl+鼠标左键单击引入的js或css可以直接进入查看,怎么设置

目前eclipse还无法使用ctrl+鼠标左键提示js或者css代码,只能提示java和xml,设置方法如下:

依次打开window-->preferences-- >General-->Editors-->Text Editors-->hyperlink.
将Open Declaration和Open Return Type取消勾选,即可。

温馨提示:答案为网友推荐,仅供参考
第1个回答  推荐于2018-05-17
1. 确认window-->preferences-- >General-->Editors-->Text Editors-->hyperlink. 全部勾上。
2. 如果还是不能解决, 那么问题是,打开XML文件格式默认方式不对, 以下是修改为XML Editior打开方法:
Window -> Preferences -> General -> Editors -> File Associations
File types: *.xml
Associated editors:XML Editor*** -> Default
在Associated editors选择框里点击“XML Editor*** ”,点击“Default”按钮。
如果没有*.xml就自己新增一个.本回答被网友采纳
第2个回答  2014-04-12
需要设置Eclipse的属性
window-->preferences-- >General-->Editors-->Text Editors-->hyperlink. 全部勾上

望采纳!本回答被提问者采纳
第3个回答  2019-05-14

把这个勾上即可

相似回答