Is there a shortcut to hide the find widget in VS Code?

Viewed 563

You can open the find in page widget by pressing CTRL + F, but pressing it again only focuses it.

I really dislike having to use my mouse to get rid of the find widget as it blocks out some of the code.

Anyone know how to use a shortcut to hide the find widget?

Find Widget

2 Answers

You can make it toggle by Ctrl+F. Just add this to keybindings.json

{
    "key": "ctrl+f",
    "command": "closeFindWidget",
    "when": "editorFocus && findWidgetVisible"
}
Related