Community
Participate
Working Groups
Use a file with 3 lines: int a; // Select the first 2 lines such that the cursor is at the beginning of the 3rd line and press ctrl+/. The first line is commented. //int a; // Now, without changing the selection (still 2 lines are selected, cursor at beginning of 3rd line) press ctrl+/, again. The first line is commented again, I'd expect it to be uncommented: ////int a; //
I think this is basically the same issue I mentioned in bug 323456 comment 3. This might require a fix in the platform.
Created attachment 179023 [details] workaround until platform bug is fixed.
The workaround does not change the fact that the last line is not commented. However immediately uncommenting it works.
*** cdt cvs genie on behalf of mschorn *** Bug 324838: Workaround for platform issue in commenting code. [*] ToggleCommentAction.java 1.15 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/ToggleCommentAction.java?root=Tools_Project&r1=1.14&r2=1.15
Workaround has been removed by fix for bug 323456. The issue is resolved with Platform 3.7m3.