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 - Commenting lines...
Summary: Commenting lines...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 2 votes (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-12 11:26 UTC by belur_1d
Modified: 2010-09-23 08:38 UTC (History)
1 user (show)

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 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.