VS Code terminal history search, Windows, Powershell

人走茶凉 提交于 2021-01-29 09:29:38

问题


since version 1.43 the ctrl+r r keyboard shortcut has stopped working for powershell history searches. Is there another way to search in recently used commands?


回答1:


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. 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



来源:https://stackoverflow.com/questions/60857148/vs-code-terminal-history-search-windows-powershell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!