温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

PowerShell PSReadLine特性

发布时间:2020-07-29 04:26:03 来源:网络 阅读:967 作者:zengchuixin2008 栏目:系统运维

之前配置完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
向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI