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 - [69cat] XML: Comment and Uncomment buttons for XML source code lines
Summary: [69cat] XML: Comment and Uncomment buttons for XML source code lines
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0.1
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: issues@xml
URL:
Keywords:
: 58552 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-26 03:24 UTC by gliesian
Modified: 2012-05-28 12:18 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.