Eclipse how to make an xml file always open in a text editor, not in an xml editor

I went to file associations, there was no .xml format, when I added it, all editors were added automatically, and they are static, they wrote me something like: blocked by the content type “XML”. - cannot unlink. I want that whenever I create an xml file, it automatically opens with a text editor.

Please, help.

+47
eclipse xml editor
Aug 02 '11 at 17:13
source share
3 answers

enter image description here

Click on the default * .xml and text editor

Close all files, and then try opening the XML file again.

+66
Aug 03 2018-11-11T00:
source share

My problem was that I opened pom.xml using the maven editor - I wanted it to be opened using the maven editor, but to open it in the "source" view - it achieved this:

enter image description here

Entering xml in the search field did not include this page in the results.

+31
Jul 13 '14 at 13:00
source share

For people looking for a simple XML text editor, the default XML editor in Eclipse comes with a syntax-highlighted text view (as it should). It is simply unintuitive to know that such an opinion exists.

  • After opening the file using the XML Editor, you can switch the text view by clicking the Source tab in the panel just below the file.

By default, the view is Design. "Source" is a simple text view with syntax highlighting.

For a better illustration, see

How to view xml in Eclipse with simple syntax highlighting?

+3
May 10 '16 at 7:31 a.m.
source share



All Articles