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 256230

Summary: unable to Toggle comment
Product: php Reporter: amobilia
Component: EditorAssignee: Tomas Mysik <tmysik>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Code example

Description amobilia 2015-10-28 13:23:29 UTC
Created attachment 157024 [details]
Code example

Tested on dev 20151009
Steps to reproduce :
1/ Create a new php file and set this content :
--------------------
<?php
/**
 * TEST
 */
// comment
if(1) {
    echo "1";
}
--------------------

2/ Select all lines, except the <?php one

3/ Do Source -> Toggle Comment (or ctrl + maj + c)


What's happened :
Nothing


What's expected :
Add comment symbol ("//") before each line
Comment 1 Tomas Mysik 2015-11-05 07:25:51 UTC
(In reply to amobilia from comment #0)
> What's expected :
> Add comment symbol ("//") before each line

Not really IMO, comment lines do not need to be commented again. Anyway, if one selects non-comment lines, it works.

Thanks.
Comment 2 Tomas Mysik 2016-06-15 07:08:02 UTC
Lowering priority, not-yet-commented lines work properly.

Thanks.