Text Selection (ctrl + w) behaviour
I am writing this message because I don't understand exactly how the text selection behaves.
If I want to make a selection between the parentheses of a 'for' by placing my cursor after the parenthesis. My selection grows as on the images...



I don't have the same problem with the "if" and "else" unless there's a space after the parenthesis...
Selecting a line of the type :
a second ctrl + w select all the function where is the line... sometimes on certain line of the same type that selects me well after several ctrl+w the complete line.
Other example :
the second ctrl + w :
The selection is really disconcerting and it really bothers users of my company who were used to selecting under Eclipse with the double click.
I also find the selection very disturbing because I don't understand its behavior on different code examples...
If anyone can enlighten me? Is it a bug? Is it a code style problem? etc.
Thanks in advance :)
Please sign in to leave a comment.
Hi, Nicolas, thanks for reporting.
According to the webhelp: Press Ctrl+W successively to extend selection to the next containing node.
For the first case I've created https://youtrack.jetbrains.com/issue/CPP-13398. Feel free to comment or upvote, follow it to get updates.
Could you please describe the situation with lines in more detail? On my side the extend selection works as follows:
Do you have the same selection steps on your side? Imho, the second step is confusing. Is that the issue you described? Or do you observe some other strange behavior?
If I'm writing exactly the same code of yours, I have the same behavior.
But I still have problems with the code I showed earlier.
I think the problem is the file where my examples are, because, for instance, this piece of code doesn't work correctly but if I isolate this code in another file, the selection works correctly.
code :
Nicolas, I'm afraid I need a standalone code snippet with which the situation can be stably reproduced. Please send to clion-support at jetbrains.com the code snippet, if you manage to extract it, or at least a sample project with which the issue can be reproduced.
All right. I ask my superiors if I can extract a file and you send it as soon as possible.