Peter
Peter

Reputation: 329

Visual studio - select word with hyphen

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?

Upvotes: 10

Views: 2850

Answers (1)

Adrian Tollis
Adrian Tollis

Reputation: 256

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.

Upvotes: 24

Related Questions