Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » xml editor
xml editor [message #665239] Wed, 13 April 2011 20:17 Go to next message
mitch  is currently offline mitch Friend
Messages: 7
Registered: November 2009
Junior Member
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] Thu, 14 April 2011 00:59 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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 06:37 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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 12:04 Go to previous messageGo to next message
mitch  is currently offline mitch Friend
Messages: 7
Registered: November 2009
Junior Member
Thanks Dani. That worked perfectly. Smile
Re: xml editor [message #665428 is a reply to message #665239] Thu, 14 April 2011 15:10 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4434
Registered: July 2009
Senior Member

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


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: xml editor [message #665440 is a reply to message #665428] Thu, 14 April 2011 15:36 Go to previous messageGo to next message
mitch  is currently offline mitch Friend
Messages: 7
Registered: November 2009
Junior Member
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 17:30 Go to previous message
Nick Sandonato is currently offline Nick SandonatoFriend
Messages: 126
Registered: July 2009
Senior Member
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: Fri Apr 19 21:13:33 GMT 2024

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

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

Back to the top