Wednesday, February 7, 2024

[SOLVED] VSCode terminal previous commands

Issue

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?


Solution

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



Answered By - Felipe
Answer Checked By - Terry (WPSolving Volunteer)