Ctrl+R in the VS Code Terminal doesn't trigger the reverse-i-search
function the way its supposed to in a normal terminal session.
To enable it, follow the steps below:
- Open VS Code
- Open the Command Palette using
Ctrl + Shift + P
, selectPreferences: Open Keyboard Shortcuts (JSON)
- Add the following code to the JSON array in the file:
{
"key": "ctrl+r",
"command": "workbench.action.terminal.sendSequence",
"args": { "text": "\u0012" },
"when": "terminalFocus"
}