Vscode Is there a way to customize the double-click selection behavior?

In particular, for php, traditionally in other editors (for example, np ++), when you double-click a variable name, for example, select only the name without "$". In VSCode, it selects the variable name plus "$", and often the tail "-", if any.

To accept

$foo->bar();

Current behavior:

double click 'foo' selects:

$foo-

Desired behavior:

double click 'foo' selects:

foo

Edit: here is the github issue: https://github.com/Microsoft/vscode/issues/2036

+4
source share
2 answers
+2

issue , .

, "editor.wordSeparators".

:

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

$foo, $ .

+11

Source: https://habr.com/ru/post/1624208/


All Articles