I have been running across this one periodically ever since I started using Idea and it always catches me out!
Say I have some stupid and pointless comment like
/**
* Created by IntelliJ IDEA.
* User: rgibson
* Date: Feb 22, 2006
* Time: 6:54:08 PM
* To change this template use File | Settings | File Templates.
*/
Now I want to get rid of it, so I put the cursor just before the opening /** and press Ctrl-W. Idea selects /**. Press again; the entire line is selected. I have to press a third time to select the entire comment. This is counter to the case where the "block" is a method, where Idea will select the entire method with the first key press.
It's even worse if I have collapsed the comment - now after pressing Ctrl-W Idea shows me that the entire (collapsed) comment is selected, whereas actually only the first 3 characters are. Deleting the selection hence has a bad effect on the state of my code...
Description
I have been running across this one periodically ever since I started using Idea and it always catches me out!
Say I have some stupid and pointless comment like
/**
* Created by IntelliJ IDEA.
* User: rgibson
* Date: Feb 22, 2006
* Time: 6:54:08 PM
* To change this template use File | Settings | File Templates.
*/
Now I want to get rid of it, so I put the cursor just before the opening /** and press Ctrl-W. Idea selects /**. Press again; the entire line is selected. I have to press a third time to select the entire comment. This is counter to the case where the "block" is a method, where Idea will select the entire method with the first key press.
It's even worse if I have collapsed the comment - now after pressing Ctrl-W Idea shows me that the entire (collapsed) comment is selected, whereas actually only the first 3 characters are. Deleting the selection hence has a bad effect on the state of my code...