Closed
Description
Prerequisites
- I have written a descriptive issue title.
- I have searched all issues to ensure it has not already been reported.
- I have read the troubleshooting guide.
- I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
Summary
After modifying the VSCode settings for Editor: Word Separators
, removing both -
and $
from the default list will have VSCode ignore some of that setting for the PowerShell extension only :
In PowerShell script file
- Removing the
-
is honored - doubleclicking on a cmdlet selects the full name - Removing the
$
is ignored - doubleclicking on a variable does not select the $ of the variable
In a Markdown file
- Removing the
-
is honored - doubleclicking on a cmdlet selects the full name - Removing the
$
is honored - doubleclicking on a variable selects the full name
Configuration value
The full current value of the Editor: Word Separators
setting is:
`~!@#%^&*()=+[{]}\|;:'",.<>/?
PowerShell Version
Name Value
---- -----
PSVersion 7.1.0-preview.6
PSEdition Core
GitCommitId 7.1.0-preview.6
OS Microsoft Windows 10.0.19043
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visual Studio Code Version
1.58.0
2d23c42a936db1c7b3b06f918cde29561cc47cd6
x64
Extension Version
ms-vscode.powershell@2021.5.1
ms-vscode.powershell@2021.6.2
ms-vscode.powershell-preview@2021.6.1
Steps to Reproduce
Set Word Separators to:
`~!@#%^&*()=+[{]}\|;:'",.<>/?
Then doubleclick on a variable in a PowerShell script
Visuals
No response
Logs
No response