Visual studio - select word with hyphen

Viewed 1955

When you ctrl+click or double click a word in the Visual Studio text editor, it stops the selection at a hyphen. So, for example, you cannot select a full GUID with ctrl+click. Is there a way to remove the hyphen as a word separator?

1 Answers

There is an extension that solves this issue for visual studio. "Select Hyphenated" @ marketplace.visualstudio.com

There is also a setting in vscode:

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

By removing the hyphen, double clicking selects whole hyphenated words. I also removed the period and hash for selecting css classes and ids.

Related