Associate XML files with the Eclipse XML editor

夙愿已清 提交于 2019-12-10 14:56:37

问题


Every time I double-click on an XML file, a spreadsheet thing opens. I find it very annoying, and I have to open XML files with the text editor in Eclipse. It is not color-coded like its counterpart in Dreamweaver.

How can I configure my computer so that, when I double-click on an XML file, I get a color-coded editor in Eclipse?


回答1:


Try setting the file associations in the Eclipse settings > General > Editors > File associations




回答2:


Have you checked the bottom of the editor pane for tabs labelled Design and Source? Maybe you just need to flip to another page in the editor.




回答3:


Go to Window -> Preferences and then type in File Associations in the quick search box on the left, browse for the *.xml file type and mark as default the editor you want to use to open the file.




回答4:


you can associate the .xml file type with any program you want to be opened with. as iam associate it to notepad.

you can do it from you window browser. go to tools>folder options and choose file types tab. scroll down to find xml type and then click the change button to browse the program you like.



来源:https://stackoverflow.com/questions/5131448/associate-xml-files-with-the-eclipse-xml-editor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!