[英]Windows Terminal/Powershell Intellisense
I'm not sure if these are the correct terms, but in some tutorial videos I've watched, I've seen terminal "auto-completing" some commands in some sort of intellisense.我不确定这些术语是否正确,但在我看过的一些教程视频中,我看到终端以某种智能感知“自动完成”一些命令。 For example, one starts typing "npx cre", the terminal auto-completes with "npx create-react-app", but the remaining characters a bit greyed out, to accept or not the auto-completion.例如,一个人开始输入“npx cre”,终端自动完成“npx create-react-app”,但其余字符有点变灰,接受或不接受自动完成。 Is this feature exclusive to macOS or Linux terminals?此功能是 macOS 或 Linux 终端独有的吗? I'm currently using the new windows terminal app, but I couldn't find a way to enable this.我目前正在使用新的 windows 终端应用程序,但我找不到启用此功能的方法。
Thanks so much if you someone can clarify this.如果有人能澄清这一点,非常感谢。
It's the beta version of Psreadline: PSReadLine 2.0.0-beta3 - PowerShell Gallery It autocompletes using the command history file.这是 Psreadline 的 beta 版本: PSReadLine 2.0.0-beta3 - PowerShell Gallery它使用命令历史文件自动完成。 I believe it only works with Powershell 7.我相信它只适用于 Powershell 7。
Install-Module -Name PSReadLine -RequiredVersion 2.0.0-beta3 -AllowPrerelease
Predictive IntelliSense · Issue #1468 · PowerShell/PSReadLine预测 IntelliSense · 问题 #1468 · PowerShell/PSReadLine
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.