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 than allow for the addition and removal of comments (i.e., Comment and Uncomment). Essentially, '//' is added or removed to the beginning of the focused line respective to the button pressed. This is a nice feature. It would be nice to have the save feature for the SQL Editor as it currently does not exist. The only difference is that in place of '//' the character that would be used would be '#'. Thanks.
Also note that if multiple lines are selected, the comment should be added to them all at once. For example, if the following lines 2-4 were selected without comments and the Comment button was clicked, lines 2-4 would have the # sign added to the beginning of the lines: select * #junk #junk #junk from actor
The comment icon should have a '#' sign in the upper left quadrant, versus '//'.
Reference 184938 for a similar enhancement request for the XML Editor.
Checked in 7.4: Feature is present. With regard to the original request: the comment sign is not "#", but "-- ". The latter is sql standard.