网站建设资讯

NEWS

网站建设资讯

PowerShellPSReadLine特性

之前配置完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

标题名称:PowerShellPSReadLine特性
文章源于:http://cdweb.net/article/phoiep.html