Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to prevent Eclipse from automatically completing an XML comment?
How to prevent Eclipse from automatically completing an XML comment? [message #185218] Tue, 19 December 2006 00:15 Go to next message
Eclipse User
Originally posted by: james_adams.yahoo.com

I want to configure Eclipse so that it will stop automatically completing
an XML comment when I start typing one. For example if I want to comment
a section of XML then I want to type "<!--" at the top of the section and
then "-->" at the bottom. However as soon as I type the "<!--" Eclipse
automatically finishes the comment for me with a "-->". It's a minor
annoyance that I'd like to configure away if possible. I have tried
numerous preference settings -- turning off content assist for XML and
HTML files, removing the XML comment template, etc. -- but nothing I've
tried so far has turned off this annoying behavior. Can someone suggest
something else that I might try?

Thanks in advance for any suggestions.


--James
Re: How to prevent Eclipse from automatically completing an XML comment? [message #185300 is a reply to message #185218] Wed, 20 December 2006 08:20 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2284
Registered: July 2009
Senior Member
It's a part of the Smart Insert mode, which you can enable and
disable from the Edit menu or your chosen keyboard shortcut.

--
Nitin Dahyabhai
Structured Source Editor


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: How to prevent Eclipse from automatically completing an XML comment? [message #185333 is a reply to message #185300] Wed, 20 December 2006 20:25 Go to previous messageGo to next message
Eclipse User
Originally posted by: james_adams.yahoo.com

Thank you Nitin, that did the trick!

--James
Re: How to prevent Eclipse from automatically completing an XML comment? [message #185357 is a reply to message #185300] Wed, 20 December 2006 21:54 Go to previous messageGo to next message
Eclipse User
Originally posted by: james_adams.yahoo.com

Is there a way to disable this by default (i.e. a preference setting), so
I don't have to disable this each time I open/edit an XML file?

--James
Re: How to prevent Eclipse from automatically completing an XML comment? [message #186360 is a reply to message #185357] Wed, 17 January 2007 00:00 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2284
Registered: July 2009
Senior Member
James Adams wrote:
> Is there a way to disable this by default (i.e. a preference setting),
> so I don't have to disable this each time I open/edit an XML file?

No, the default is Smart Insert mode. You could open a RFE to
remember the mode between editing sessions, but then there are ways
to toggle and otherwise block comment existing areas of text on the
Source menu.

--
Nitin Dahyabhai
Structured Source Editor


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Project-wide validator?
Next Topic:can't run a jsp page
Goto Forum:
  


Current Time: Thu Oct 02 14:45:25 GMT 2014

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

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