History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-8351
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Maxim Shafirov
Reporter: Vladislav Kaznacheev
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Block comment/uncomment quirks

Created: 15 Aug 06 15:37   Updated: 29 Sep 07 16:56
Component/s: Editor. Editing Text
Fix Version/s: Diana Final

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
---------------------------------
Original Demetra Beta feedback (Jiri Tyr [jiri.tyr@e-learning.vslib.cz]):

1) select any block of code (SHIFT+ARROW UP/DOWN)
2) comment it with CTRL+SHIFT+/
3) move cursor outside the block of the code
4) select the same block of the code again
5) try to uncomment it with CTRL+SHIFT+/

It will comment the block of code one more time and only then you can uncomment it - first time the second comment and then the first comment.
Always if you comment the block of code and you move the cursor out of the code and you wan to uncomment it, it add new comment and only then you can remove both with the CTRL+SHIFT+/.
--------------------------------------------
[VladK]
To reproduce this, make sure that the second time you select the block INCLUDING comments, and selection goes from bottom to top.

Similar problem (not sure it deserves a separate bug report):
1. Comment some line
/*
int x;
*/

2. Select all 3 lines and comment them again. You will get:

/*
*/
/*
int x;
*/
/*
*/

This will compile, but this is ugly.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.