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 143115

Summary: Comment toggle issue
Product: cnd Reporter: crimcat <crimcat>
Component: EditorAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: blocker CC: dnikitin
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description crimcat 2008-08-07 00:51:37 UTC
Hello,

This issue is more specific to C/C++ development so I have posted it to CND/EDITOR.
Ctrl-Shift-C key combination is defined to toggle comments on and off. But for some coding style triple-slash comment
style is used like the following:
/// a_class::methos();
Current implementation after Ctrl-Shift-C removes only '//', which leads to wrong C++ syntax. Suggest removing all
slashes to get compilable code. Also, this may be applicable for any number of slashes. Suggest uncomment to compilable
source code in the case.
Comment 1 Alexander Simon 2008-08-28 19:28:57 UTC
It looks as enchancement
Comment 2 dnikitin 2008-11-05 16:07:51 UTC
>> Suggest removing all slashes
I think that it's not solution.

So, If I try to comment the following code:

// invoke methodA
a_class::methodA();

and then try to uncomment this code then I will get uncompilable source code (because comment line will be uncommented too).