之前配置完VSCode和PowerShell集成后,可以使用powershell的智能感知,高亮等功能,查了一下,這個(gè)應(yīng)該跟PSReadLine有關(guān)系。PSReadLine在PowerShell控制臺(tái)中提供了改進(jìn)的命令行編輯體驗(yàn)。
PSReadLine需要PowerShell 3.0或更高版本以及控制臺(tái)主機(jī)。它在PowerShell ISE中不起作用。它在Visual Studio Code的控制臺(tái)中工作。
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
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。