Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable "search wrap" in VS Code

Is there a way to disable "search wrapping" in VS code?

I.e. prevent the search from starting back at the top again after reaching the last occurrence of the search term in the file?

like image 834
Ru Hasha Avatar asked Jul 23 '19 07:07

Ru Hasha


People also ask

How do I turn off VS Code wrap?

By default, editor. wordWrap is off but if you set to it to on, text will wrap on the editor's viewport width. "editor. wordWrap": "on" You can toggle word wrap for the VS Code session with ⌥Z (Windows, Linux Alt+Z).

How do I hide the search bar in VS Code?

Ctrl + Shift + H Search and replace. Ctrl + B Hide/reveal whole sidebar.

How do you enable or soft wrap in code?

Quickly turn on/off word wrap in VSCodeOn Windows or Linux, simply press Alt+Z. On MacOS, you can also press Option ⌥ + Z.


1 Answers

UPDATE !!

A setting is being added to v1.45 to disable "search wrapping". See https://github.com/microsoft/vscode/pull/92243

Editor > Find: Loop

default is enabled, it will loop or wrap.


---------------- old answer:

No, apparently not. See this issue: disable search wrap. That issue was closed due to lack of interest in 2018.

like image 155
Mark Avatar answered Sep 30 '22 16:09

Mark