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 119993 - User cannot uncomment text quickly
Summary: User cannot uncomment text quickly
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-25 08:51 UTC by soldatov
Modified: 2008-03-25 12:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2007-10-25 08:51:35 UTC
Steps:
- Add this C code into editor:
------------------------------
int f() {
    return 0;
}

int main() {
    
}

------------------------------
- Select 'f' function and press on 'Comment' button
==> code will be transformed to
/*
int f() {
    return 0;
}
*/

int main() {
    
}

- Push Tools|Format menu item
==> code will be transformed to
/*
 * int f() {
 * return 0;
 * }
 */

int main() {
    
}

But I cannot uncomment text quickly. For example, Select 'f' function again and press 'Uncomment' button
==>
 * int f() {
 * return 0;
 * }

int main() {
    
}
Comment 1 dnikitin 2008-01-11 11:57:03 UTC
another use case:

type "/*", press enter and add comment, type "*/" as result you get the following code:

/*
 * comment
 */

try press Ctrl+/ or Ctrl+Shift+D to uncomment this bit of code --> an asterisk from middle line is not deleted

I get the following:

 * comment
Comment 2 Vladimir Kvashin 2008-02-14 15:43:27 UTC
Yes, this style of comments - when each line starts with "*" - can't be easily uncommented.
If you just press comment button (or press ctrl-slash) and then (some time later) uncomment - it works as expected.
So I believe it's a P4.
Comment 3 Alexander Simon 2008-03-13 13:56:38 UTC
fixed
Comment 4 Alexander Simon 2008-03-13 13:57:16 UTC
-
Comment 5 soldatov 2008-03-25 12:43:40 UTC
Problem is described by dnikitin cannot be resolved.
/*
 *p = 1;
 */
What you see in comment? 'p = 1' or '*p = 1'

First problem is fixed.
Verified in 200803250006 build