user2909892
user2909892

Reputation: 255

Selecting entire variable with double click

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?

Upvotes: 17

Views: 8926

Answers (7)

Mehmet Hanoğlu
Mehmet Hanoğlu

Reputation: 3712

In actual versions you can find this settings in

File > Settings > Editor > General > PHP > Smart Keys

Check "Select variable name without '$' sign on double click" It's done

PHPStorm PHP samrt keys settings

Upvotes: 0

Vagabond
Vagabond

Reputation: 897

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

Upvotes: 0

Valerij Dobler
Valerij Dobler

Reputation: 2764

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.

Upvotes: 9

mv1
mv1

Reputation: 568

Super late answer, haha, but here is the exact option to enable selecting $ in variable names:

File | Settings | Editor | General | Smart Keys | Select variable name without '$' sign on double click

Should be disabled.

Upvotes: 24

picofaradpjf
picofaradpjf

Reputation: 369

For me, PhpStorm on Linux will only select entire variables on double click if I have the option:

File | Settings | Editor | General

Honor "CamelHumps" word settings when selecting using double click

turned off. See documentation here.

Upvotes: 26

Charles Naccio
Charles Naccio

Reputation: 358

Using WebStorm on Windows 8.1 I was able to fix this by going to

File > Settings > [IDE Settings] > Editor 

and disabling the following option:

Honor "CamelHumps" words settings when selecting on double click

Upvotes: 2

lena
lena

Reputation: 93728

Please enable this option: File | Settings | IDE settings | Editor | Smart keys | Use "CamelHumps" words.

And check if this one enabled: File | Settings | IDE Settings | Editor | Honor "CamelHumps" word settings when selecting using double click.

Upvotes: 5

Related Questions