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?
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).
Ctrl + Shift + H Search and replace. Ctrl + B Hide/reveal whole sidebar.
Quickly turn on/off word wrap in VSCodeOn Windows or Linux, simply press Alt+Z. On MacOS, you can also press Option ⌥ + Z.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With