kvn
kvn

Reputation: 2300

VSCode - Auto select non-word characters

How to enable auto select non-word characters in Visual Studio code?

Here is the setting in atom.

enter image description here

This would enable selection of variables like $foo or colours #fff with just a double click in Atom Editor. And by selection I mean from $ to o in $foo. At the moment when double clicked on $foo, VSCode selects only foo.

Is there a way to enable this?

Upvotes: 2

Views: 247

Answers (1)

Alex
Alex

Reputation: 67689

settings.json

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

dollar:

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

sharp:

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

both:

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

Upvotes: 4

Related Questions