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 120561 - Introduce Auto-Comment feature
Summary: Introduce Auto-Comment feature
Status: RESOLVED DUPLICATE of bug 119638
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-30 22:26 UTC by rocko
Modified: 2008-08-18 23:40 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 rocko 2007-10-30 22:26:01 UTC
It would be great to have the "Toggle Comment" command in XML and related edit modes. 
When the caret is on an opening or closing tag the command would add a leading <!-- to the start tag and a trailing -->
to the corresponding end tag, or <%-- and --%> in the JSP editor. 
When there already is a comment within the tag or its subtags the command should not do anything.
Uncommenting should work just opposite ;)
Comment 1 rocko 2007-11-20 22:57:28 UTC
If there is code selected, the automatic comment should wrap the tags enclosed by the selection. 
Uncomment should work whenever the caret is located inside a commented block. 
Text selection should remain unchanged during commenting/uncommenting.
Comment 2 Samaresh Panda 2008-08-18 23:40:35 UTC
I agree, this will be very useful.

*** This issue has been marked as a duplicate of 119638 ***