roo*_*oot 17 powershell windows-10 windows-10-v1809
自从更新到 Windows 10 v1809 后,按下Shift+Space不再在 Powershell v5 中发送空格。如果我使用较旧的 Windows 10 工作站 (v1709),Shift+Space发送一个空格。
例如,我习惯于按以下键序列:
g, c, i, Shift+Space,| .
在 v1803 中,这将导致gci |. 在 v1809 中,结果是gci|.
这个组合键是否与最近推出的东西相冲突?该问题可在多个站点上重现。如果我在文本编辑器中工作,则问题不存在。启动 PS-NoProfile没有影响。
此外,这仅影响了我安装 PS 5.1。在我安装的PS Core 6.0.2中,Shift+Space还是发个空格。
Sim*_*onS 16
似乎您需要更新PowerShellGet和PSReadLine模块才能shift+space再次工作。
install-module -name powershellget -forceinstall-module -name psreadline -allowprerelease -force这应该可以,它应该可以再次工作。
来源:https : //www.reddit.com/r/sysadmin/comments/9n9mh0/powershell_51_shiftspace_problem/
小智 9
这似乎在 PowerShell 5.1.x 中再次被“破坏”了。也就是说,不Get-PSReadLineKeyHandler显示与 关联的映射Shift+Spacebar,并且按 shift+space 没有任何效果。
显式启用它并Set-PSReadLineKeyHandler -Chord Shift+Spacebar -Function SelfInsert修复问题(按 shift+space 插入空格字符),但映射不会Get-PSReadLineKeyHandler按原样显示在列表中,而是显示为普通Space映射。