From 1ad7ffc349d27f18987fead34d58576405f3b978 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Thu, 8 Feb 2018 16:06:47 -0600 Subject: [PATCH] Add Toggle Between Terminals as a vscode til --- README.md | 3 ++- vscode/toggle-between-terminals.md | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 vscode/toggle-between-terminals.md diff --git a/README.md b/README.md index 3503df1..54e4e5e 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_608 TILs and counting..._ +_609 TILs and counting..._ --- @@ -710,6 +710,7 @@ _608 TILs and counting..._ ## VSCode - [Open An Integrated Terminal Window](vscode/open-an-integrated-terminal-window.md) +- [Toggle Between Terminals](vscode/toggle-between-terminals.md) ## Webpack diff --git a/vscode/toggle-between-terminals.md b/vscode/toggle-between-terminals.md new file mode 100644 index 0000000..6dab258 --- /dev/null +++ b/vscode/toggle-between-terminals.md @@ -0,0 +1,21 @@ +# Toggle Between Terminals + +VSCode allows you to have multiple terminal tabs, but you have to manually +switch between them with a drop down. For me, that is a lot of mouse action. +I'd prefer to have a keyboard shortcut that allows me to switch between +them. Fortunately, there are commands for going to the next and previous +terminal which can be attached to keybindings. + +Try adding the following two entries to your `keybindings.json` file: + +```json +[ + { "key": "cmd+shift+k", "command": "workbench.action.terminal.focusNext" }, + { "key": "cmd+shift+j", "command": "workbench.action.terminal.focusPrevious" }, +] +``` + +Save the file and then start toggling between your different VSCode +terminals. + +[source](https://github.com/Microsoft/vscode/issues/37937)