简体   繁体   English

VS Code 终端历史搜索、Windows、Powershell

[英]VS Code terminal history search, Windows, Powershell

since version 1.43 the ctrl+rr keyboard shortcut has stopped working for powershell history searches.自 1.43 版起, ctrl+rr键盘快捷键已停止用于 powershell 历史搜索。 Is there another way to search in recently used commands?是否有另一种方法可以在最近使用的命令中进行搜索?

I can't reproduce your issue.我无法重现您的问题。 But you could try this keybinding in the meantime:但是您可以同时尝试此键绑定:

{
  "key": "alt+r",
  "command": "workbench.action.terminal.sendSequence",
  "args": { "text": "\u0012" }
},

That sends a Ctrl + R to the terminal.这会向终端发送Ctrl + R Focus can be anywhere.焦点可以在任何地方。 That should trigger the reverse search of previous terminal commands.这应该会触发对先前终端命令的反向搜索。 Does it do that for you?它对你这样做吗?

See related info: Make a keybinding to run previous or last shell commands请参阅相关信息: 进行键绑定以运行上一个或上一个 shell 命令

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM