eastwater
eastwater

Reputation: 5630

Eclipse: can not change file association

Eclipse: tried to use Text editor for .xml and .properties by changing the file associations

Windows -> Preferences -> General -> Editor -> File assocations

Can not remove or change order of the associated apps.

Upvotes: 1

Views: 3148

Answers (2)

howlger
howlger

Reputation: 34255

The fact that *.xml files are opened with the XML Editor is due to the content types settings: Window > Preferences: General > Content Types (Text > XML). Also for *.properties files there is an associated editor in Content Types (Text > Java Properties File).

If you want to open by default *.xml and *.properties files with the text editor, do the following in Window > Preferences: General > Content Types:

  1. Click Add Root... and enter a name, e. g. XML
  2. Kepp the new content type selected and in the section File associations click Add... and enter *.xml
  3. Kepp the new file association selected and in the section Associated editors click Add... and choose the Text Editor

Repeat the steps with for *.properties files.

Upvotes: 3

Duncan Krebs
Duncan Krebs

Reputation: 3502

Under file types remove .xml and .properties, add them again, the click on each one and in the view below select the editor you want to be associated with the file type selected. if multiple you can select one as the default. Should be pretty straight forward.

Upvotes: 0

Related Questions