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

Key: IDEA-11899
Type: Usability Problem Usability Problem
Status: Open Open
Assignee: Maxim Shafirov
Reporter: Gibson
Votes: 0
Watchers: 1
Operations

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

Ctrl-W and comments

Created: 12 Mar 07 17:12   Updated: 14 Mar 07 16:05
Component/s: Editor. Editing Text

Build: 6,733
Severity: Medium


 Description  « Hide
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...



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