Text selection in OS X without trailing spaces

Answered

Hello,

I got tired of one behavior in the editor. When I select text using Option+Shift+Right Arrow the text gets selected with the trailing space as well which is extremely annoying. All the applications in OS X do select just the word without any space. I'm facing the same issue in IDEA as well.

Is there any way to change this behavior?

Thanks in advance,

PETR

0
2 comments

Hi Pert,

Could you pease provide simple snippet with the code where you experienced such issue? Is it comment line or method calling chain?

 

Usually option+right is used for navigation to next world. So it jump over spaces. Could you please try Expand selection (option+up)?

0

Hi Maxim,

Yep, the example to reproduce is for example:

extern const unsigned char foo_z[];

extern const size_t foo_z_len;

Move the caret at the beginning of the word extern and select it using Option+Shift+Right Arrow. The space between extern and const gets selected as well.

I've found an open issue for this: https://youtrack.jetbrains.com/issue/IDEA-83263.

Thanks in advance,

PETR

0

Please sign in to leave a comment.