Skip to content

VS Code: Find As You Type

VS Code Find As You Type

In VS Code, when you use the Find widget (CTRL + F or CMD + F on macOS) to search for something, the editor highlights the results right away, without needing to press Enter.

If you don’t like this behavior and want the editor to highlight results only after hitting Enter, you’ll need to turn off a setting.

Let’s see how!

📹 Prefer a video instead? I got you covered:

Disable Find As You Type

  1. Press CTRL + , (or CMD + , on macOS) to open the Settings
  2. Search for editor.find.findOnType and toggle it off

You can also directly modify your settings.json file by adding the following line:

"editor.find.findOnType": false,

Next time you search for something, you’ll need to press Enter.

What About Global Search?

It’s good to know that this setting doesn’t apply to the global search (CTRL + SHIFT + F or CMD + SHIFT + F on macOS). By default, it still highlights the results immediately.

As far as I know, there isn’t a similar setting for global search at this point. Maybe we’ll get one in the future 🤞


Let me know what you think about this article in the comments section below.

If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.   
  

Comments