Eclipse中在xml文件中,ctrl+左键的快捷键,点击class定位,不生效

时间:2023-03-09 01:35:59
Eclipse中在xml文件中,ctrl+左键的快捷键,点击class定位,不生效

修改方式:
   第一种方式:Window -> Preferences -> General -> Editors -> File Associations 
            File types: *.xml
            Associated editors:XML Editor*** -> Default
            Associated editors选择框里点击“XML Editor*** ”,点击“Default”按钮。
  第二种方式:在项目中随便选择一个xml文件,右键选择打开方式“XML Editor***”,然后就可以了