Luc*_*tos 18 windows terminal powershell intellisense autocomplete
我不确定这些术语是否正确,但在我看过的一些教程视频中,我看到终端以某种智能感知方式“自动完成”一些命令。例如,一开始输入“npx cre”,终端会自动完成“npx create-react-app”,但其余字符有点灰显,以接受或不接受自动完成。此功能是 macOS 或 Linux 终端独有的吗?我目前正在使用新的 Windows 终端应用程序,但我找不到启用此功能的方法。
如果有人能澄清这一点,非常感谢。
js2*_*010 31
这是 Psreadline 的 2.1 版本: PSReadLine 2.1.0 - PowerShell Gallery 它使用命令历史记录文件自动完成。它在 powershell 5.1 中运行,并附带 powershell 7。
\n实际上PSReadLine已经到了2.2.6版本。要打开它,请将“Set-PSReadLineOption -PredictionSource History”放入您的 $profile 中。
\nInstall-Module -Name PSReadLine -force\nRun Code Online (Sandbox Code Playgroud)\n预测 IntelliSense \xc2\xb7 问题 #1468 \xc2\xb7 PowerShell/PSReadLine
\n确保使用向右箭头“激活”自动完成建议。使用选项卡会显示另一种行为。
\n