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 180685 - SQL: Request for new SQL Editor Comment and Uncomment buttons
Summary: SQL: Request for new SQL Editor Comment and Uncomment buttons
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: SQL Editor (show other bugs)
Version: 7.0.1
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-13 10:07 UTC by gliesian
Modified: 2014-01-18 14:39 UTC (History)
0 users

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-02-13 10:07:07 UTC
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.
Comment 1 gliesian 2010-02-13 10:31:21 UTC
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
Comment 2 gliesian 2010-04-26 03:18:57 UTC
The comment icon should have a '#' sign in the upper left quadrant, versus '//'.
Comment 3 gliesian 2010-04-26 03:27:56 UTC
Reference 184938 for a similar enhancement request for the XML Editor.
Comment 4 matthias42 2014-01-18 14:39:33 UTC
Checked in 7.4: Feature is present. With regard to the original request: the comment sign is not "#", but "-- ". The latter is sql standard.