Set default editor for Android XML files

I just updated the ADT plugin for Eclipse and now my Android Layout XML files open in the default XML editor and not in the layout editor, and I can’t find out where and how to fix it. I would also like other Android XML files to open in the correct editors, and not just in the layout files, without resorting to opening with a right click → open with → select an editor.

Does anyone know how to do this? Or why has this changed?

** EDIT ** Added error message - If this happens to you, please run it or add a comment - http://code.google.com/p/android/issues/detail?id=21004&q=adt&colspec=ID% 20Type% 20Status% 20Owner% 20Summary% 20Stars

+5
source share
1 answer

Configure Eclipse actions with different types of files and open them in [Window> Preferences> General> Editors> File Associations].

There you need to either select the file extension, or add it to the list and choose which program / editor, maybe this is one of Eclipse or one of your own installed programs to open it when it occurs.

Please note that this is for Eclipse Juno v4.2.0. Not sure if this is the same for other versions of Eclipse, but can't stop trying, right?

+3
source

All Articles