![]() ![]() For more information, see Find references in your code. You can use this to check possible side-effects of a large refactoring, or to verify "dead" code. Find all referencesįinds all the references to the selected element in the solution. To hide the navigation bar, change the Navigation bar option in the Text Editor All Languages settings ( Tools > Options > Text Editor > All Languages), or you can change the settings for individual languages. To return focus from the navigation bar to the code without selecting anything, press the Esc key. To select the navigation bar item that has focus and return to the code window, press the Enter key. To shift focus from box to box on the navigation bar, press the Tab key. To shift focus from the code window to the navigation bar, press the shortcut key combination Ctrl+ F2. To navigate directly to a procedure or other member of a class, choose it in the right drop-down. ![]() To navigate to a class or type, choose it in the middle drop-down. To navigate to another project that the current file belongs to, choose it in the left drop-down. You can navigate around the drop-down boxes as follows: In a partial class, members defined outside the current code file may be disabled (they appear in gray). The navigation bar appears when you edit code in a Visual Basic, C#, or C++ code base. You can choose a type or member to go directly to it. You can use the navigation bar (the drop-down boxes at the top of the code window) to navigate to code in a codebase. These commands are also available on the View menu, under Navigate Backward and Navigate Forward. These buttons retain the last 20 locations of the insertion point. You can use the Navigate Backward ( Ctrl+ -) and Navigate Forward ( Ctrl+ Shift+ -) buttons on the toolbar to move the insertion point to previous locations, or to return to a more recent location from a previous location. Navigate Backward and Navigate Forward commands ![]() This topic summarizes the different ways you can navigate your code, and provides links to topics that go into more detail. Visual Studio provides numerous ways to navigate code in the editor. Applies to: Visual Studio Visual Studio for Mac Visual Studio Code
0 Comments
Leave a Reply. |