visual-studio-code

How to close the search toggle for vscode?


This is an extremely stupid question... but how do I close/toggle the search box in vscode?

I hit [ cmd + shift + f ] to do a global search, but then I need to reach for my mouse to actually close the box to allow for more screen space.

I've searched through their issues, and there seems to be another user in the past who also experienced something similar --> https://github.com/Microsoft/vscode/issues/32613 , but the solution provided of cmd - b only works for closing the sidebar.

My developer speed has drastically dropped since this issue, and I'm certain there's been a fix.

Please help. :(

**added in picture here --> enter image description here


Solution

  • Your search results are appearing in the panel, not the sidebar.

    To toggle the panel:
    pc/mac: ctrl + ` (backtick)
    mac: āŒ˜ + J

    However, if you want your search results to appear in the sidebar (which I think is the default behavior), then add this line to your settings:

    "search.location": "sidebar"