Eclipse默认打开文件设置Editor

一般情况下,我们在Eclipse的package explorer和project explorer,双击打开时,Eclipse所使用的是默认设置的Editor,如何修改呢?
其实分两种情况,一种是偶尔打开的时候,直接在所要打开文件上,点击右键->Open With 选择相应的Editor便可以。
另外一种就是,设置默认的Editor。Window->Preferences->General->Editors->File Associations
选择指定要打开的文件类型,然后在Associated editors中,找到指定的Editor,然后点击Default便可。

当然,也可以进行添加、删除相关的文件类型及Editor设置等。

猜你喜欢

转载自chinapoison.iteye.com/blog/1915667