6 ms·
This might sound like a weird question, but after a lot of search I found no keyboard shortcut to toggle between the editor and integrated terminal. It sound li
by tsaprailis 10y ago
This might sound like a weird question, but after a lot of search I found no keyboard shortcut to toggle between the editor and integrated terminal.
It sound like a I'm picky but it's a bit of a timewaster to have to pick up the mouse just to switch from editor to the integrated terminal.
A most I could use an external terminal window but that kinda defeats the purpose of having an integrated one I think.
Is there such a key binding?
- CaRDiaK 10y agohttps://code.visualstudio.com/docs/editor/integrated-terminal https://code.visualstudio.com/docs/editor/integrated-termina...
- tsaprailis 10y agoThanks for the feedback. I had assigned a different shortcut to "ctrl+`" so I was getting a different result that toggle.
- kwood 10y agoWhat you're really looking for is exactly 1 shortcut: cmd+shift-p (or ctrl-shift-p, depending on the platform) for the command palette, where you can fuzzy search for every available command. If a command has a keyboard shortcut (toggle terminal has one), it's in that list. It even shows your custom shortcuts.
- tsaprailis 10y agoThanks for the feedback. I had assigned a different shortcut to "ctrl+`" so I was getting a different result that toggle.
- socmag 10y agoCtrl-~?
- Already__Taken 10y agoOther commenters aren't answering this. ctrl+` hides or opens the terminal. If you want to leave it open there's no command to toggle only your cursor focus from editor to terminal. edit: I take it back, It's just not bound.{"key": "ctrl+#", "command": "workbench.action.terminal.focus"} But you can't move the focus back with that toggle. https://code.visualstudio.com/docs/editor/integrated-terminal#_key-bindings https://code.visualstudio.com/docs/editor/integrated-termina...
- kwood 10y agoGood point! I already have double pressing the terminal toggle in my muscle memory, using focus might be worth changing that habit. To "get out" of the terminal, cmd+1 sets focus on the editor again (to be precise: focus on the first editor group if there is a split view).
- Already__Taken 10y agoOoh good spot. Thank you.
- tsaprailis 10y agoYes, thanks very much! I actually had those too, as a backup but I think different combinations for opening and closing (or in this case toggling into terminal, and back into the editor) are more cumbersome than simply opening/closing.