You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This extension breaks the expected double-click-to-select and Ctrl+Shift+Arrows-to-select behavior in PowerShell files.
It appears to treat hyphenated text like foo-bar-baz as a single word for both double-click word-selection and keyboard word-wise selection, while the expected behavior observed in any other language modes (verified in C#, JavaScript and plain text) is to treat foo, bar, and baz as separate selectable segments.
The demonstration of the issue is on the screencast. The broken Ctrl+Shift+Arrows behavior is shown in the second half of the video.
Prerequisites
Summary
This extension breaks the expected double-click-to-select and
Ctrl+Shift+Arrows-to-select behavior in PowerShell files.It appears to treat hyphenated text like
foo-bar-bazas a single word for both double-click word-selection and keyboard word-wise selection, while the expected behavior observed in any other language modes (verified in C#, JavaScript and plain text) is to treatfoo,bar, andbazas separate selectable segments.The demonstration of the issue is on the screencast. The broken
Ctrl+Shift+Arrowsbehavior is shown in the second half of the video.PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
foo,bar, orbaz, either in the comment or in the assigned string.foo,bar, orbaz, the entirefoo-bar-bazis always selected.fooorbar, for example like this:|foo-bar-baz.Ctrl + Shift + Arrow-Right.foo, the wholefoo-bar-bazis always selected.Visuals
PowerToys_2026-04-15--12-09-32--812.mp4
Logs
No response