Visual Studio find text in code editor auto jumps from the current line to another one

Liviu Ionut Olteanu 11 Reputation points
2021-12-14T15:38:27.647+00:00

Hello,

Does someone knows how to fix an annoying behaviour in the code editor of Visual Studio.?
I have a .cs file with 10 000 lines of code.
I am positioned within the file to see the lines from 920 to 950
I am trying to find a specific text (let's say "contract")
While i am typing the "contract" word, Visual Studio automatically jumps to the closest occurence of the "contract" word, even i did not clicked on the Find Next button.
If the .cs file is very large (and it is) it's very hard to know if the found occurrence is in the scope you are interested or not.

Would be better to remove this behaviour and make Visual Studio act lke a normal editor:

  • Do not jump to the first occurrence until you click on Find Next button, because you just want to analyse the code that is in your sight, for highlighted words

It's the only text editor from Microsoft Stack that has this issue, Visual Studio Code and Sql Server Management Studio acts normal.

Thanks,

Liviu

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,107 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,913 questions
{count} votes

6 answers

Sort by: Most helpful
  1. Sandro Rudin 1 Reputation point
    2022-05-27T04:00:03.287+00:00

    I am fully with the OP here. This behavior is not helpful at all. I have been using Resharper for many years and thus never realized how bad VS behaves out of the box.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.