Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code—Customizing word separators

Is there a way to customize (i.e., in settings.json) the set of characters used to delimit words and tokens in Visual Studio Code? I'm referring to the set of characters used to control the behavior of actions like Alt+Left, Alt+Right, or double-clicks when navigating text.

Sublime Text supports a "word_separators" option for settings files that take a set of characters like “./\()"’-:,.;<>~!@#$%^&*|+=[]{}~?”. Does Code support a similar feature?

like image 311
Michael Zalla Avatar asked Jul 26 '15 00:07

Michael Zalla


1 Answers

As of the February update, v0.10.10 (February 2016), word navigation and word separators has now been added! As of today you can view the update announcement here under "Word navigation and word separators", but after the next release the url will probably change to this... I make this assumption based on previous releases.

Your settings file(s) now contain a section for editing word navigation and word separators

// Characters that will be used as word separators when doing word related navigations or operations
"editor.wordSeparators": "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",
like image 102
Prancer Avatar answered Oct 05 '22 06:10

Prancer