VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.91k stars 1.32k forks source link

Terminal toggle visibility is not working #6292

Open fredysan opened 3 years ago

fredysan commented 3 years ago

Neither keyword shortcuts Shit + \ Ctrl + Alt + < hide or show the terminal window

sean-brydon commented 3 years ago

It appears the keybinds you have mentioned are custom.

cntrl+' works to show and hide the terminal when you have "vim.useCtrlKeys": true, active in your config.

However, there is an easy way to implement this feature in VSCode.

Open keybindings.json or ctnrl+shift+p then search for keyboard shortcuts

You can enter in the following to minic your keybinings above

  {
    "key": "shift+\\",
    "command":"workbench.action.terminal.toggleTerminal",
    "when":"terminal.actve && vim.mode=='Normal'"
  },
  {
    "key": "ctrl+alt+<",
    "command":"workbench.action.terminal.toggleTerminal",
    "when":"!terminal.actve && vim.mode=='Normal'"
  }