Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (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 UserFriend
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 DahyabhaiFriend
Messages: 4434
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 Web Tools Platform
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 UserFriend
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 UserFriend
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 DahyabhaiFriend
Messages: 4434
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 Web Tools Platform
Previous Topic:Project-wide validator?
Next Topic:can't run a jsp page
Goto Forum:
  


Current Time: Sat Apr 20 03:16:56 GMT 2024

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

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

Back to the top