Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Better terminal toggling keybindings in VS Code
[
// Focus/unfocus terminal with ctrl+` and toggle it with ctrl+shift+`
{
"key": "ctrl+`",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
{
"key": "ctrl+`",
"command": "workbench.action.terminal.focus",
"when": "!terminalFocus"
},
{
"key": "ctrl+shift+`",
"command": "workbench.action.terminal.toggleTerminal",
},
]
@rosswintle
Copy link
Author

rosswintle commented Feb 13, 2018

Note - VS Code doesn't seem to mind comments in the keybindings JSON even though they're not officially allowed by the JSON spec.

@rosswintle
Copy link
Author

rosswintle commented Feb 13, 2018

Kudos to @Tyriar who helped out in this issue: microsoft/vscode#12054

@nake89
Copy link

nake89 commented Mar 20, 2019

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment