Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to select to end of word in intellij-idea / phpstorm

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.

like image 723
caponica Avatar asked Aug 16 '14 22:08

caponica


People also ask

How do I jump to end of file in IntelliJ?

On Windows, you can use Ctrl + Home and Ctrl + End to go to the beginning and end of a file respectively.

How do I select a word in IntelliJ?

Use ⌃⌘G (macOS), or Ctrl+Alt+Shift+J (Windows/Linux), to select all occurrences of the same word.

How do I select multiple instances of words in IntelliJ?

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.

What is Ctrl Shift T in IntelliJ?

In Eclipse, the "Open Type" dialog ( Ctrl + Shift + T ) allows you to open any type, including those that are in jar dependencies.


1 Answers

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.

like image 55
LazyOne Avatar answered Sep 18 '22 19:09

LazyOne