You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
terminal focus key binding is not working correctly after update to 1.5 #11714
bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityterminalGeneral terminal issues that don't fall under another labelverifiedVerification succeeded
changed the title [-]terminal focus key binding is not working correctly update[/-][+]terminal focus key binding is not working correctly after update to 1.5[/+]on Sep 8, 2016
I'm seeing the same problem. Below is keybindings.json. My settings.json is empty.
// Place your key bindings in this file to overwrite the defaults
[{
"key": "cmd+`",
"command": "workbench.action.terminal.focus",
"when": "editorTextFocus"
}]
(also, if there is an easier way to toggle between the terminal and the editor without a custom keyboard, I'd love to know it! just started trying out VSCode earlier this week, so apologize if thats a dumb question!)
Reacted by Ivar Refsdal, pritimay and Ettore Del Negro
You can also reproduce this issue with: ctrl-shift-p and select Terminal: Focus Terminal
My keybindings.json is an empty array.
VS Code then won't focus the terminal in 1.5.1.
Ben DiFrancesco (@apbendi) It's not a dumb question. I think it would be an excellent feature to easily toggle between terminal and editor without a custom keyboard shortcut. I don't know of a way at present moment.
I like that toggle setup too. You can always collapse the bottom pane with cmd+j so you don't even need to replace the toggleTerminal binding to hide it.
roblourensIvar Refsdal (@ivarref)workbench.action.focusActiveEditorGroup is a thing now (#11904), so you can use this to reliably focus the most recently used file/editor:
bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityterminalGeneral terminal issues that don't fall under another labelverifiedVerification succeeded
Activity
ramya-rao-a commentedon Sep 8, 2016
pritimay Do you mean the terminal focus ley binding was working for you in 1.4 but is not working after update to 1.5 ?
prisar commentedon Sep 8, 2016
Yeah, just after update from 1.4 to 1.5 it is not working
[-]terminal focus key binding is not working correctly update[/-][+]terminal focus key binding is not working correctly after update to 1.5[/+]Tyriar commentedon Sep 8, 2016
pritimay Can you paste in your settings.json and keybindings.json?
apbendi commentedon Sep 9, 2016
I'm seeing the same problem. Below is
keybindings.json. Mysettings.jsonis empty.apbendi commentedon Sep 9, 2016
(also, if there is an easier way to toggle between the terminal and the editor without a custom keyboard, I'd love to know it! just started trying out VSCode earlier this week, so apologize if thats a dumb question!)
prisar commentedon Sep 9, 2016
Daniel Imms (@Tyriar) This are my user settings.json and keybindings.json
{
"terminal.integrated.cursorBlinking": true,
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
"window.restoreFullscreen": true
}
[
{
"key": "ctrl+q",
"command": "workbench.action.terminal.focus",
"when": "!terminalFocus"
},
{
"key": "ctrl+shift+x",
"command": "extension.partialDiff.markSection1",
"when": "editorTextFocus"
},
{
"key": "ctrl+d",
"command": "extension.partialDiff.markSection2AndTakeDiff",
"when": "editorTextFocus"
}
]
workbench.action.terminal.focus is working only after killing the terminal.
hashhar commentedon Sep 9, 2016
Can confirm the same issue. I tried this on a clean install. Both
settings.jsonandkeybindings.jsonare empty.oblin commentedon Sep 9, 2016
Comfirm this issue, too.
try this simple setting which works in 1.4, but not 1.5.1:
{ "key": "ctrl+alt+t", "command": "workbench.action.terminal.focus"}
ivarref commentedon Sep 9, 2016
You can also reproduce this issue with:
ctrl-shift-pand selectTerminal: Focus TerminalMy keybindings.json is an empty array.
VS Code then won't focus the terminal in 1.5.1.
Ben DiFrancesco (@apbendi) It's not a dumb question. I think it would be an excellent feature to easily toggle between terminal and editor without a custom keyboard shortcut. I don't know of a way at present moment.
3 remaining items
prisar commentedon Sep 9, 2016
Thanks Daniel Imms (@Tyriar) really needed it
Tyriar commentedon Sep 9, 2016
Also I love your setup Ivar Refsdal (@ivarref), I might have to steal it once the fix lands 😄
Fix workbench.action.terminal.focus when the terminal panel is visible
roblourens commentedon Sep 12, 2016
I like that toggle setup too. You can always collapse the bottom pane with cmd+j so you don't even need to replace the toggleTerminal binding to hide it.
Tyriar commentedon Sep 12, 2016
Added it to my settings with a small tweak:
I created #11897 requesting to add a command that focuses the most recently used editor group so it feels better.
Tyriar commentedon Sep 13, 2016
roblourens Ivar Refsdal (@ivarref)
workbench.action.focusActiveEditorGroupis a thing now (#11904), so you can use this to reliably focus the most recently used file/editor:{ "key": "ctrl+`", "command": "workbench.action.terminal.focus", "when": "!terminalFocus" }, { "key": "ctrl+`", "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus" }Fix workbench.action.terminal.focus when the terminal panel is visible