Toggle focus between terminal and chat input

Hello. I’d like to toggle from chat input to terminal focus. I know that you do cmd+L to focus onto chat. See the image of where I expect to begin focusing from.

What is the keybinding that conditions when the text input is focused? I tried the below and it did not work:

{
“key”: “cmd+m”,
“command”: “workbench.action.terminal.focus”,
“when”: “!terminalFocus && inChatInput”
},

Hey, to focus on the terminal, use the shortcut Ctrl + `. If you need to move the focus to the editor, use the shortcut CMD + 1. Hope this helps!

Thanks alot! That was it.

1 Like