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 90939

Summary: Commenting lines...
Product: java Reporter: belur_1d <belur_1d>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker CC: vv159170
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description belur_1d 2006-12-12 11:26:35 UTC
Hi

Please make the comment src line configurable...
i.e right now IDE  prepends  // for each line in selected block.

I prefer the multi line approach /**    
                                  *  
                                  */  
Also clicking twice causes netbeans to keep on adding  // 
netbeans shud first check whether block is already commented

Correct the user can make out it is commented...BUT will be nice if
nb can fix it as well.
Comment 1 Jan Lahoda 2006-12-12 12:43:25 UTC
I tend to agree with such option (although it is not very simple, as there may
already be a block comment in the text), but I do not think this is a defect.
Comment 2 Vladimir Voskresensky 2007-02-25 17:52:09 UTC
Implementing it for Java would be very useful for C/C++ Pack as well. 
Because C language supports only such kind of comments and not line comments, so
I can backport in our codeline as well :-)
Comment 3 rstaff 2007-12-19 16:52:47 UTC
I, too, desire the ability to have the IDE surround code with either line or block comments.  I tend to use block
comments more than line comments.