Community
Participate
Working Groups
Obviously, every XML element that starts with a start-tag (http://www.w3.org/TR/REC-xml/#sec-starttags), i.e it is not an empty tag, has an end-tag, and it is appropriate to auto-insert end-tags when the user closes an open-tag. For example, if I enter the following snippet character by character: <bean id="anId" class="aClass"> Eclipse should automatically insert </bean> for me. Currently, if after entering <bean id="anId" class="aClass"> I write </ Eclipse auto-completes the end tag to </bean> which is nice, but could be further improved. Eclipse could automatically insert </bean> after I had typed the ending ">" in <bean id="anId" class="aClass">
Is this web tools you encountered this in?
(In reply to comment #1) > Is this web tools you encountered this in? > It is Eclipse Europa with WebTools, etc. but I just created a new xml file in a Java project so I am not sure if it is related to WebTools or not. It is related to the XML Editor IMHO.
I'm not sure how much common support there is for xml tag management. If I try this in just a base Eclipse (no webtools etc) in a java project I don't get any completion. Moving to Webtools.
In the past, people have complained about the auto-insertion and wanted it off (like bug 144313) It's nice to see someone that wants it more. If/when we fix this enhancement, there will need to be a preference of some sort for this so that we accommadate the people that want this and the people that don't.
This is pretty common functionality across XML editors. The difference in usage is usually where the editor is being used and why. If you are working with a standard like DITA, DOCBOOK or even a B2B specification like STAR, OAGi, UBL, ACCORD, HRXML, etc. it's pretty handy to have the autocompletion. Editors like Stylus Studio, Oxygen XML, and XML Spy already have this functionality.
Hi. Thanks for your enhancement request. I think this functionality was covered by the implementation of bug 265364 in WTP 3.1. *** This bug has been marked as a duplicate of bug 265364 ***