Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there anyway to move the search box in Visual Studio Code?

As you can see in the below image, the search box is at the top right corner. Find box

Sometimes this image will cover up the text underneath it. Is there a way to move the search box to some other place? For example, like Atom's or Sublime's search box.

like image 829
Henry Yang Avatar asked Apr 30 '19 03:04

Henry Yang


People also ask

How do I move the VSCode sidebar?

VSCode tip: You can move the sidebar/file explorer to the right-hand side of your editor via View > Appearance > Move Side Bar Right.

How do I hide the search bar in VS code?

For the people that may came here looking for how to remove the top search bar: right click on it > uncheck Command center ; right click in title bar and check it again to restore.

How do you move highlight code in VSCode?

For moving the text right and left you can use TAB key: TAB move the selected text right. SHIFT + TAB move the selected text left.


1 Answers

NO, there is currently no way to move it.

There was discussion on this amongst the vscode developers: Find Widget UI enhancement.


We should definitely not make this move both vertically and horizontally since we do not do this anywhere else in our UX. Introducing such a new concept does not align well with our general workbench UX which is not very flexible


Looking at the pictures the docked find widget at the top / bottom feel too heavy for me.

The current find widget solution I like because it is similar to the chrome experience which every user on the planet is familiar with


While implementing the docking solution, we found we can actually split this two issues completely. For the issue of covering search result, we can allow users to scroll beyond the first line by the height of Find Widget. It doesn't change Find Widget at all, you can only scroll beyond first line only when the Find Widget is visible so it won't cover anything.


I made two changes to the Find Widget for this work item.

  • You can resize the Find widget horizontally
  • You can scroll beyond the first line when the find widget is visible.

Which gives us the only customizations we can do to the search/find widget if it (as you said) "covers up text underneath it":

  • You can adjust the width horizontally
  • You can set "editor.find.addExtraSpaceOnTop": true to allow "scroll beyond the first line when the Find Widget is visible"
like image 186
Gino Mempin Avatar answered Nov 12 '22 09:11

Gino Mempin