-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
editor.wordSeparators no longer allows double click to capture variable with "$" #129852
Comments
This guy's got the answer, it seems the behavior got toggled inside vscode recently- https://stackoverflow.com/questions/68128258/vscode-does-not-honor-editor-wordseparators-when-writing-powershell-code { |
I consider this a workaround but the maintainers may consider a bug so I'll leave open for a bit to see what you think. |
VS Code core does not ship a language-specific setting for I think you are running into two problems:
|
Thanks everyone, this appears to be an intended change in vscode-powershell, noted here: https://github.com/PowerShell/vscode-powershell/blob/c983f75be23b78daeb69e31a0987a655a14207b9/CHANGELOG.md#v202151 Closing issue. |
Filed #131707 to improve the user affordance |
VSCode 1.58.2 on Windows.
We've been using this setting for many years to allow a double click (in PowerShell) to capture variable names (like $MyVariable). This is used extensively to copy/paste the variables inside VSCode.
By default VSCode only selects MyVariable when double click, so we use this editor.wordSeparators setting to remove '$'
There has been a recent change in VSCode that prevents this from working. Double clicking on $MyVariable and ctrl-c only selects MyVariable.
I also notice that the "$" is highlighted with a different color than the rest of the variable name. See screenshots.
Ben
The text was updated successfully, but these errors were encountered: