This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 184938

Summary: [69cat] XML: Comment and Uncomment buttons for XML source code lines
Product: xml Reporter: gliesian <gliesian>
Component: CodeAssignee: issues@xml <issues>
Status: NEW ---    
Severity: normal CC: ppis, pzajac, sdedic
Priority: P3    
Version: 7.0.1   
Hardware: PC   
OS: Windows Vista   
Issue Type: ENHANCEMENT Exception Reporter:

Description gliesian 2010-04-26 03:24:06 UTC
Case Study: In the toolbar of the Java source editor, there are two buttons
that allow for the addition and removal of comments (i.e., Comment and
Uncomment).  Essentially, '//' is added or removed to the beginning of the
context source code line respective to the button pressed.  This is a nice feature.

It would be nice to have the same feature for the XML Editor as it currently
does not exist.  The only difference is that in place of '//', '<!--' would be added to the beginning of the context source code line, and '-->' would be added to the end.

Also, the image with the '//' in the upper left quadrant would need to be changed to something more representative of XML comment lines.

Thanks.
Comment 1 gliesian 2010-04-26 03:27:18 UTC
Reference 180685 for a similar enhancement request for the SQL Editor.
Comment 2 Peter Pis 2010-04-26 07:05:08 UTC
Reassigning.
Comment 3 gliesian 2010-05-03 17:39:46 UTC
*** Bug 58552 has been marked as a duplicate of this bug. ***
Comment 4 Svata Dedic 2012-05-28 12:18:26 UTC
Note that corresponding actions already exist and they even have keyboard shortcuts assigned. I would prefer to save toolbar space for more important actions, e.g. those which indicate some state.

Note e.g. IntelliJ does not display ANY toolbar in the editor, and it is still considered one of the best IDEs on the market.

The only reason for implementing this is the consistency between Java and other editors.