在Eclipse中XML打开时,默认的打开方式为如下图的方式:
[img]http://dl2.iteye.com/upload/attachment/0091/3865/8b79c0e8-5e81-3658-a4dd-f520e8e61864.png[/img]
但是这种方式加注释等等的快捷键都是不能用的,所以我就会右击 open with设置打开方式,但是久而久之一个一个文件open with就会感觉太费劲。
其实在Eclipse中可以设置文件的默认打开方式:
windows ==> preferences ==> General ==> Editors ==> file Associations,
[img]http://dl2.iteye.com/upload/attachment/0091/3867/47b32b17-ee16-3332-9fe7-497f7b02edd0.png[/img]
这样就大功告成了!
[img]http://dl2.iteye.com/upload/attachment/0091/3865/8b79c0e8-5e81-3658-a4dd-f520e8e61864.png[/img]
但是这种方式加注释等等的快捷键都是不能用的,所以我就会右击 open with设置打开方式,但是久而久之一个一个文件open with就会感觉太费劲。
其实在Eclipse中可以设置文件的默认打开方式:
windows ==> preferences ==> General ==> Editors ==> file Associations,
[img]http://dl2.iteye.com/upload/attachment/0091/3867/47b32b17-ee16-3332-9fe7-497f7b02edd0.png[/img]
这样就大功告成了!