Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 561
Brian Zhou Avatar asked Apr 28 '18 15:04

Brian Zhou


People also ask

What does Ctrl d do in VS Code?

Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. Tip: You can also add more cursors with Ctrl+Shift+L, which will add a selection at each occurrence of the current selected text.

How do I open the search bar in VS Code?

As of vscode v1. 35 or so, you can now right-click in the empty space below the search view (i.e., in the sidebar under the open search inputs) and you will get an option to Toggle Search View Position .

How do I turn off hints VS Code?

Type “editor. hover. enable” into the search field then check/uncheck the checkbox associated with “Controls whether the hover is shown.” to enable/disable the suggestion tooltip on hover.


1 Answers

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"
like image 122
Amr Noman Avatar answered Nov 15 '22 23:11

Amr Noman