欢迎光临
我们一直在努力

PowerShell PSReadLine特性

之前配置完VSCode和PowerShell集成后,可以使用powershell的智能感知,高亮等功能,查了一下,这个应该跟PSReadLine有关系。PSReadLine在PowerShell控制台中提供了改进的命令行编辑体验。

PSReadLine需要PowerShell 3.0或更高版本以及控制台主机。它在PowerShell ISE中不起作用。它在Visual Studio Code的控制台中工作。

https://docs.microsoft.com/zh-cn/powershell/module/psreadline/about/about_psreadline?view=powershell-6#about_psreadline

PSReadLine provides a powerful command line editing experience for the PowerShell console. It provides:

Syntax coloring of the command line
A visual indication of syntax errors
A better multi-line experience (both editing and history)
Customizable key bindings
Cmd and Emacs modes
Many configuration options
Bash style completion (optional in Cmd mode, default in Emacs mode)
Emacs yank/kill ring
PowerShell token based "word" movement and kill
赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。