Is there a way to expand a selection to the end of the current word in intellij idea / phpstorm?
For example (ASCII art ahead...)
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
<----------------------->|
I have an existing selection from the start of "ipsum" to part-way through "consectetuer". How do I select to the end of that word. Pressing CTRL+SHIFT+Right
takes me to the beginning of adipiscing. This is not a big deal when the spacing is small but sometimes it looks more like this:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
<----------------------->|
And I have two choices... either Right
to the end of the current word, or CTRL+SHIFT+Right
to the beginning of adipiscing and then Left
back to where I want to be.
Most other text editors/IDEs I've used select to the end of the current word. Hopefully there's a settings I cannot find to do the same in PHP Storm!
In the settings there's just the existing CTRL+SHIFT+Right
mapped to "Move Caret to Next Word with Selection" and I cannot find any settings anywhere to change this.
On Windows, you can use Ctrl + Home and Ctrl + End to go to the beginning and end of a file respectively.
Use ⌃⌘G (macOS), or Ctrl+Alt+Shift+J (Windows/Linux), to select all occurrences of the same word.
Select multiple occurrences of a word or a text range Do one of the following: Successively press Alt+J to find and select the next occurrence of case-sensitively matching word or text range. Press Ctrl+Alt+Shift+J to select all case-sensitively matching words or text ranges in the document.
In Eclipse, the "Open Type" dialog ( Ctrl + Shift + T ) allows you to open any type, including those that are in jar dependencies.
There is no separate action that would just extend selection to the "word end", only to the "next word". There is one that would "delete" to the end of word but nothing for "selection".
This ticket seems to be asking what you need, star, vote and comment to get notified on progress. Since it is in backlog section and has no votes at the moment, I doubt that it will be implemented any time soon.
If that ticket is not what you need, feel free to submit new Feature request ticket.
Have you tried ideaVim or emacsIDEAs plugins? They may support such action.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With