Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva
 

I was playing with the linux history command and after some tries I was searching on internet and I found a good feature on Visual Studio Code for the integrated terminal.

VS Code has 2 features for:

  • Commands for Current session
  • Commands for Previous sessions
  • Visited Directories for Current session
  • Visited Directories for Previous sessions

 Finally a good, easy and pratics way to manage your comand history plus the new history for directory visited.

I binding my keys, I choosen CTRL + ALT + UP arrow for history commands and CTRL - ALT + LEFT arrow for directories.

 

Info

Remote SSH inherits from local binds.


BINDS 

{
    "key": "ctrl+alt+up",
    "command": "workbench.action.terminal.runRecentCommand",
    "when": "terminalFocus"
},
{
    "key": "ctrl+alt+right",
     "command": "workbench.action.terminal.goToRecentDirectory",
     "when": "terminalFocus"
} 

 

RESULTS

  • COMMANDS HISTORY

VSCode Terminal History Commands

  • DIRECTORIES VISITED

VSCode Terminal History Directories

 - have fun -

 

DISQUS - Leave your comments here