I am using latest version of Visual Studio code editor and I am using PHP programming language. I am selecting a variable but it only selects variable name not $ sign.

By default It selects as below

enter image description here

But I want it as below

enter image description here

Any setting there how can I do that ?

Any information on this would be greatly appreciated. Thanks!

1 Answers

1
Álvaro González On Best Solutions

You need to remove the $ symbol from the editor.wordSeparators directive. This is the default value:

// Characters that will be used as word separators when doing word related navigations or operations.
"editor.wordSeparators": "`[email protected]#$%^&*()-=+[{]}\\|;:'\",.<>/?",