Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode terminal previous commands

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?

like image 881
Felipe Avatar asked Jul 23 '16 18:07

Felipe


1 Answers

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

like image 70
Felipe Avatar answered Nov 15 '22 23:11

Felipe