Selecting entire variable with double click

Viewed 6804

In PhpStorm, when you double click on a variable, say $_helloWorld, it just selects a part of the variable. For example, when you double click on World and it will select just that instead of the entire variable.

I want it to select the entire variable $_helloWorld when I double click on any part of it.

Does anyone know how to do it?

6 Answers

For Rider it's under

File > Settings > Editor > General > Typing Assistance

and then at the bottom the last checkbox:

Honor "CamelHumps" words settings when selecting on double click

should be turned off.

For the folks who are using Mac, this is what you got to do:

Step 1: Select preferences option in PhpStorm Menu

preferences menu option

Step 2: Once the window appears get the Smart Keys settings like so, which will be inside the following menu

Editor > General > Smart Keys

Smart Keys Settings

Step 3: Uncheck the checkbox next to Honor "CamelHumps" words settings when selecting on double click

smart keys option

Related