16

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 6

24

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.

23

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.

1
  • 2
    Never mid the late answer, turned out useful another 3 years later. Aug 31, 2020 at 16:56
8

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.

5

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.

2
  • Yes both are selected, and BTW I am on Mac OS X 10 (in case if that makes any difference) Dec 12, 2013 at 9:27
  • It's worth noting the same problem and solution applies for Rider.
    – Павле
    Oct 21, 2019 at 7:24
2

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
0

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

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.