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 - unable to Toggle comment
Summary: unable to Toggle comment
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: All All
: P4 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-28 13:23 UTC by amobilia
Modified: 2016-06-15 07:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Code example (58 bytes, application/octet-stream)
2015-10-28 13:23 UTC, amobilia
Details

Note You need to log in before you can comment on or make changes to this bug.
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.