VSCode 终端建议未自动完成 [英] VSCode Terminal suggestions not autocompleted

查看:34
本文介绍了VSCode 终端建议未自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VSCode 的 PowerShell 终端现在提供了一种您可能想要输入的灰色建议(可能来自历史?):

VSCode's PowerShell Terminal now offers a kind of suggestion in gray of what you might be wanting to type (presumably from the history?):

但似乎没有办法真正接受这个建议:按 Tab 只会执行正常的 PowerShell 自动完成(通常是 cmdlet 或路径).

But there seems to be no way to actually accept the suggestion: pressing tab just does the normal PowerShell autocomplete (usually of a cmdlet or path).

这是什么功能,我可以通过tab"来让命令清晰地显示出来吗?

What is this feature and can I "tab" to get the command tantilisingly shown?

推荐答案

对我来说是 Shift + RightArrow.

如果您启用了 EditMode VI,那么请确保将您想为此使用的任何组合键定义为 SelectForwardChar.要将 SelectForwardChar 设置为 Shift + RightArrow,请将以下代码行插入到您的 VSCode PowerShell 配置文件中:

If you have EditMode VI enabled, then make sure to define whatever key combination you would like to use for this to SelectForwardChar. To set SelectForwardChar to Shift + RightArrow insert the following line of code into your VSCode PowerShell Profile:

Set-PSReadLineKeyHandler -Key Shift+RightArrow -Function SelectForwardChar

这篇关于VSCode 终端建议未自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆