Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why in visual studio code by double clicking on the variable $ is not selected?

In visual studio code 1.54.1 I found that double clicking on php variable literal of the var is selected, but not first $ char, that seems not good.

I found branch: VSCode - Is there a way to customise double-click select behaviour?

and set rule

"editor.wordSeparators": "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?"

and looks like with this rule variable is selected with : https://prnt.sc/10mc93s but when I want to copy this vraible and to paste in this editor first $ char : https://prnt.sc/10mcdhd Can it be some other rule for copy paste operations? If to paste this var in other editor - first $ char is lost too...

Thanks!

like image 906
mstdmstd Avatar asked Oct 17 '25 11:10

mstdmstd


1 Answers

You need to remove the $ symbol from File > preferences > Settings -> Search [wordSeparators]

"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",

to

"`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?",
like image 142
GigolNft Avatar answered Oct 20 '25 16:10

GigolNft