Navigating and Searching (Visual C#)
Visual C# provides the following tools to help you navigate and search through source code, project files, and open windows.
Find in Files
At the top of every code editor window is the navigation bar, which consists of two list boxes. The one on the left lists all the classes defined in the current file, and the one on the right lists all the members for the class that is selected in the left list box. You can locate a method by selecting it in the right list box.
By pressing CTRL+SHIFT+F you can open the Find in Files dialog box to perform search and replace operations across a project.
To rename methods or types, or change method parameters, use the refactoring feature, which is more complete and intelligent than search and replace. For more information, see Refactoring.
Visual Studio tracks and remembers cursor movement in the navigation stack. Use CTRL+- to navigate backwards to the previous cursor location and CTRL+SHIFT+- to navigate forwards to the last cursor location in the navigation stack. You can also navigate the stack by clicking Navigate Backwards and Navigate Forwards in the View menu.
Visual Studio also uses a separate navigation stack to track cursor movement for Go To Definition calls. Use CTRL+SHIFT+8 to move back to the cursor location where Go To Definition was called. Use CTRL+SHIFT+7 to move forward in the navigation stack.