11

I've been using the integrated terminal in Visual Studio Code a lot since it was added, but I noticed a very frustrating feature/bug.

I am using the Windows 10 Bash terminal, and cannot seem to access the previous command history by using the "Up" arrows. Did this get remapped to another key or does it simply not work?

Felipe
  • 10,606
  • 5
  • 40
  • 57
  • See https://stackoverflow.com/a/70900927/836330 for how to bring up a QuickPick of recent terminal commands although I note that W10 bash is not currently supported. – Mark Jan 28 '22 at 22:25

1 Answers1

11

Found the answer by accident, after accidentally hitting a few keys. It seems the most common commands have been mapped to the following defaults:

Previous Command: Ctrl+P

Next Command: Ctrl+N

Cursor Left: Ctrl+B (backwards)

Cursor Right: Ctrl+F (forwards)

Cursor Home: Ctrl+A

Cursor End: Ctrl+E (end)

Delete from cursor position: Ctrl+D (del)

Clear Screen: Ctrl+L

Felipe
  • 10,606
  • 5
  • 40
  • 57
  • 4
    On Windows 10 and VScode 1.53.2, I had to change the following for the `Previous command` to work: `Keyboard shortcuts`-> Right click on `Go to File...` -> `Change when expression` -> `!terminalFocus` Otherwise, Ctrl + P would always open the `Go to file` menu – Chirlo Mar 01 '21 at 09:26