Ron8320
Ron8320

Reputation: 11

Searching and navigating through code in visual studio

I work on reality big project. And sometimes i get the need to search for some specific keyword inside A single c# file that has many calls of other functions from other c# file.

So i want to know if there is any easy way that could search for give phrase or keyword inside the current file and inside all the functions that my current file calls to. But not in the entire solution or inside the whole project.

Upvotes: -1

Views: 838

Answers (1)

tmaj
tmaj

Reputation: 35135

  1. For inside the file that's Ctrl+F.

  2. Otherwise Code Search in VS2022 is very fast. Normally it's bound to Ctrl+T.

  3. There also are the Go To options in the context menu that could help: enter image description here

  1. Finally, at the top of the editor window you can switch between classes and properties/methods.

BTW. You can address the large solution problem by splitting the codbase into multiple smaller solutions that only include parts of the overall code. This has some drawbacks, but overall it works very well in my experience.

Upvotes: 2

Related Questions