Search code examples
visual-studio-codekeyboard-shortcuts

How to switch focus from find box back to editor panel in VS Code?


In VS Code, what is the keyboard shortcut to switch back to the editor from the find box opened by ctrl-f ?

I have searched the internet for various variations on the above, but all I got were answers to press ctrl-` and ctrl-tab twice which seems sub optimal and kind of a hack.

And pressing esc closes the find box which is what I definitely do not want.


Solution

  • Add a keybinding to focus the active editor group, which is what you want to do.

    Find this command in the Keyboard Shortcuts editor, hover over it and click the + sign to its left and enter your desired keyboard shortcut into the dialog box.

    View: Focus Active Editor Group
    workbench.action.focusActiveEditorGroup