Skip to main content



      Home
Home » Newcomers » Newcomers » xml editor
xml editor [message #665239] Wed, 13 April 2011 16:17 Go to next message
Eclipse UserFriend
Is there a way to make it so Eclipse opens XML files by default with the text editor instead of the XML editor? Thanks.
Re: xml editor [message #665273 is a reply to message #665239] Wed, 13 April 2011 20:59 Go to previous messageGo to next message
Eclipse UserFriend
On 13-Apr-11 14:17, mitch wrote:
> Is there a way to make it so Eclipse opens XML files by default with the
> text editor instead of the XML editor? Thanks.

I think if you right-click, choose Open With, then the editor you want,
Eclipse remembers the choice for next time and uses that as the new default.
Re: xml editor [message #665283 is a reply to message #665239] Thu, 14 April 2011 02:37 Go to previous messageGo to next message
Eclipse UserFriend
On 13.04.2011 22:17, mitch wrote:
> Is there a way to make it so Eclipse opens XML files by default with
> the text editor instead of the XML editor? Thanks.
1. open General > Editors > File Associations preference page
2. click 'Add...' to add the "*.xml" file type
3. in the lower pane select the 'Text Editor'
4. click 'Default'
5. quit the dialog by clicking 'OK'

Dani
Re: xml editor [message #665346 is a reply to message #665283] Thu, 14 April 2011 08:04 Go to previous messageGo to next message
Eclipse UserFriend
Thanks Dani. That worked perfectly. Smile
Re: xml editor [message #665428 is a reply to message #665239] Thu, 14 April 2011 11:10 Go to previous messageGo to next message
Eclipse UserFriend
On 4/13/2011 4:17 PM, mitch wrote:
> Is there a way to make it so Eclipse opens XML files by default with the
> text editor instead of the XML editor? Thanks.

I'm probably not going to like the answer, but why is that desirable?

--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational
Re: xml editor [message #665440 is a reply to message #665428] Thu, 14 April 2011 11:36 Go to previous messageGo to next message
Eclipse UserFriend
The short answer is because I never liked the XML editor and always have to right-click "open with" to get the text editor.

I think the reason I dislike the xml editor is that it comes up in design mode and for a long time I didn't even see that there was also a source mode. What I want for editing is what source mode is like. Is there a way to make it automatically open an xml file and go directly to source mode?
Re: xml editor [message #665473 is a reply to message #665440] Thu, 14 April 2011 13:30 Go to previous message
Eclipse UserFriend
When opening an XML file in a new editor, the page that is selected is based on what page was last selected in a previous XML editor.

So, the first time you open an XML editor in a workspace you'll be presented with the Design page. If your preference is Source, click the Source page. After this, any time the XML editor is opened, the Source page is activated.
Previous Topic:How to view bug details in Eclipse.org Bugzilla?
Next Topic:Find window keeps getting larger
Goto Forum:
  


Current Time: Mon Nov 10 09:48:42 EST 2025

Powered by FUDForum. Page generated in 0.09813 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top