Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Double-click select word wrong behavior #212
Double-click must select one word in any expression.
Also: full string (expr) must be selected on triple-click if needed but not on double-click.
This works for most cases except for strings -
if I place cursor on any single-word inside that string and double-click, it will select entire string - annoying because this is a common usecase
There is still one weird circumstance that occurs, but it's a very limited edge case: If you double-click on the second asterisk at the beginning of a doc comment, only the text of the comment will be selected. (In the normal case, when selecting a beginning or end token, the selection will be extended to entire lines if they are multi-line comments.) This is because the Java comment selectioner (a horrible name) also handles the selection, and IDEA takes the most specific (smallest) one. We could eliminate that if we changed doc comments to NOT be PsiComments, but that brings with it many other issues.
I'm going to close this. The functionality will be in the next release.