Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code terminal history search, Windows, Powershell

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?

like image 633
Ondřej Petr Avatar asked Jan 26 '26 11:01

Ondřej Petr


1 Answers

Also see https://stackoverflow.com/a/70900927/836330 for how to bring up a QuickPick panel with the recent terminal commands (powershell is supported).

and

https://stackoverflow.com/a/62203544/836330 or https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_70.md#run-recent-command-as-a-replacement-for-reverse-search


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

like image 61
Mark Avatar answered Jan 29 '26 02:01

Mark



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!