以前配置完VSCode和PowerShell集成後,可使用powershell的智能感知,高亮等功能,查了一下,這個應該跟PSReadLine有關係。PSReadLine在PowerShell控制檯中提供了改進的命令行編輯體驗。shell
PSReadLine須要PowerShell 3.0或更高版本以及控制檯主機。它在PowerShell ISE中不起做用。它在Visual Studio Code的控制檯中工做。ide
PSReadLine provides a powerful command line editing experience for the PowerShell console. It provides:code
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