2

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?

Ondřej Petr
  • 93
  • 1
  • 9

1 Answers1

3

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


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

Mark
  • 97,651
  • 19
  • 297
  • 324
  • 2
    Thank you, Mark. That solved my problem. I just customized it a little bit ```{ "key": "ctrl+r", "command": "workbench.action.terminal.sendSequence", "args": { "text": "\u0012" }, "when": "terminalFocus" }, ``` – Ondřej Petr Mar 27 '20 at 16:48