Theo Itzaris
Theo Itzaris

Reputation: 4681

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.

Upvotes: 6

Views: 11197

Answers (3)

To search in file list use Ctrl+Alt+F

Upvotes: 0

jmm
jmm

Reputation: 9

I am on Ubuntu 20.04.6. In my case, it was keyboard-related. Pressing Shift+i worked for me.

Upvotes: 0

Mark
Mark

Reputation: 182791

For Visual Studio Code, check the setting:

Editor > Find: Auto Find in Selection

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

Upvotes: 7

Related Questions