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.
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.
Reference 180685 for a similar enhancement request for the SQL Editor.
Reassigning.
*** Bug 58552 has been marked as a duplicate of this bug. ***
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.