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 196505

Summary: Need to be able to easily comment out part of the code
Product: cnd Reporter: andrey_p <andrey_p>
Component: EditorAssignee: Vladimir Voskresensky <vv159170>
Status: STARTED ---    
Severity: normal    
Priority: P3    
Version: 7.0.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description andrey_p 2011-03-09 15:27:35 UTC
Currently neighter manual (via entering characters '/' and '*') or automatic (through Source->Toggle Comment) methods are convenient to comment out part of the code line.

The first one inserts comment close chars */ immediately so developer needs to manually delete them. Also when entering first char of closing sequence Editor completes it to "**/" instead of "*/"

The Toggle Comment command acts on the whole source line(s) which include selection, not the actual selection ifself.
Comment 1 Vladimir Voskresensky 2011-04-08 05:26:48 UTC
(In reply to comment #0)
> Currently neighter manual (via entering characters '/' and '*') or automatic
> (through Source->Toggle Comment) methods are convenient to comment out part of
> the code line.
> 
> The first one inserts comment close chars */ immediately so developer needs to
> manually delete them. Also when entering first char of closing sequence Editor
> completes it to "**/" instead of "*/"
http://hg.netbeans.org/cnd-main?cmd=changeset;node=217feccfa5f0
Comment 2 Quality Engineering 2011-04-08 08:51:54 UTC
Integrated into 'main-golden', will be available in build *201104080400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/217feccfa5f0
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #196505 -  Need to be able to easily comment out part of the code
- no auto insertion of closing */ after /* if after some content on line (to prevent deleting unneded closing symbols)