3

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?

asked Mar 25, 2020 at 20:47

1 Answer 1

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

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

answered Mar 25, 2020 at 22:48
Sign up to request clarification or add additional context in comments.

1 Comment

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" },

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.