Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Open
Assignee
Maxim Shafirov
Subsystem
Editor. Editing Text
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Exception Robot
    5 years ago (15 Aug 2006 16:37)
  • Updated by   root
    2 years ago (17 Jan 2010 20:31)
  • Jira: IDEADEV-8351
    (history, comments)
 
IDEA-33280 Block comment/uncomment quirks
0
Issue is visible to: All Users
  The issue is visible to the selected user group only

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.
Comments (0)
 
History
 
Linked Issues (?)
 
Issue has no comments