Visual Studio Code—Customizing word separators
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": "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",
To enable double click selecting the "$" symbol (for example) along with other text as well, you need to remove "$" symbol from delimiters.
Settings -> Preferences -> search "editor.wordSeparators" -> remove $ symbol
Adding this answer, because similar googling pointed me here. Hope comes useful to someone.
Remark: This was working till 2020 I guess, than Microsoft changed something in Vscode and now you need to specify "sepeterators-per-language":
- Open settings.json (ctrl+p settings.json)
- add following line at the end of the file:
"[powershell]": {
"editor.wordSeparators": "`~!@#%^&*()=+[{]}\\|;:'\",.<>/?",
}
Just specify your language in [ ] and remove symbol you want to select with double click as well.