Search code examples
editorvisual-studio-code

How to fix ctrl+f on visual studio code


Visual studio code lately has changed the search functionality or it is just in my editor.

Previously when I pressed Ctrl+F I could search in the whole opened document.

But lately, when I press Ctrl+F to do a search, it is automatically enabled, the last on the right option, **Find in selection(Alt+L)**.

As I don't have any selection active, it cant find anything, and I need to disable the option each time, in order to search all the document.

I attach a screenshot for clarification. enter image description here

Could i disable that option by default? Thanks in advance.


Solution

  • For Visual Studio Code, check the setting:

    Editor > Find: Auto Find in Selection

    to never or multiline. Did yours get set to always somehow?