Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 868
Peter Avatar asked Dec 14 '22 21:12

Peter


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.

like image 83
Adrian Tollis Avatar answered Dec 22 '22 00:12

Adrian Tollis