13
votes

I am coming from Dreamweaver into PhpStorm 8.0.2 (on Windows 8.1).

How do you set it up so that when selecting a variable, you do not select the dollar ($)? This needs to include variables separated by underscores.

I have tried the various settings to do with CamelHumps, and had mixed results, but still not ideal.

For example, double-clicking the variable $foo_bar, I would like it to select foo_bar.

  • With "Honor CamelHumps", it will select $foo_bar.
  • Without "Honor CamelHumps", it will select foo or bar depending on which word you double-click on.
3
What language? If PHP then there is no such option -- $ always gets selected. - LazyOne
Thanks - hopefully they release this option in a future version. - Soaptray

3 Answers

7
votes

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

4
votes

It's now fixed - there is an option to allow selecting of $ in variable names - see https://stackoverflow.com/a/42624161/4879058

0
votes

you should click exactly underscore sign when double clicking to select foo_bar