How to: Navigate Within the Integrated Development Environment
The integrated development environment (IDE) has been designed to allow you to move from window to window and file to file in several different ways, depending on your preference or project requirements. You can choose to cycle through open files in the editor, or cycle through all active tool windows in the IDE. You also can switch directly to any file open in the editor, regardless of the order in which it was last accessed. These features can help increase your productivity when working in the IDE.
Note
The options available in dialog boxes, and the names and locations of menu commands you see, might differ from what is described in Help depending on your active settings or edition. This Help page was written with General Development Settings in mind. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.
Navigating Among Files in the Editor
Navigate Backward and Navigate Forward cycle through the open files in the editor based on the order in which they were accessed, much like Back and Forward do for your viewing history in Microsoft Internet Explorer.
To move through open files in order of use
To activate open documents in the order they were most recently touched, press CTRL + MINUS SIGN.
To activate open documents in the reverse order, press CTRL + SHIFT + MINUS SIGN.
Note
Navigate Backward and Navigate Forward also can be found on the View menu.
You also can switch to a specific file open in the editor, regardless of when you last accessed the file, using the IDE Navigator, the Active Files list in the editor, or the Windows dialog box.
The IDE Navigator works much like the Windows application switcher. It is not available from menus and can be accessed only using shortcut keys. You can use either of two commands to access the IDE Navigator to cycle through files, depending on the order in which you want to cycle through. Window.PreviousDocumentWindowNav allows you to move to the file most recently accessed and Window.NextDocumentWindowNav allows you to move in the reverse order. General Development Settings assigns CTRL + SHIFT + TAB to Window.PreviousDocumentWindowNav and CTRL + TAB to Window.NextDocumentWindowNav.
Note
If the settings combination you are using does not already have a shortcut key combination assigned to this command, you can assign your own custom command using the Keyboard page of the Options dialog box. For more information, see How to: Work with Shortcut Key Combinations.
To switch to specific files in the editor
Press CTRL + TAB to display the IDE Navigator. Hold down the CTRL key and press TAB repeatedly until you select the file you intend to switch to.
Tip
To reverse the order in which you go through the Active Files list, hold down the CTRL + SHIFT keys and press TAB.
- or -
In the upper right corner of the editor, click the Active Files button, located next to the Close button, and then select a file from the list to switch to.
- or -
On the Window menu, click Windows.
In the list, select the file you want to view and then click Activate.
For information on marking and finding specific locations in files, see Navigating Through Code.
Navigating Among Tool Windows in the IDE
The IDE Navigator also lets you cycle through the tool windows you have open in the IDE. You can use either of two commands to access the IDE Navigator to cycle through tool windows, depending on the order in which you want to cycle through. Window.PreviousToolWindowNav allows you to move to the file most recently accessed and Window.NextToolWindowNav allows you to move in the reverse order. General Development Settings assigns SHIFT + ALT + F7 to Window.PreviousDocumentWindowNav and ALT + F7 to Window.NextDocumentWindowNav.
Note
If the settings combination you are using does not already have a shortcut key combination assigned to this command, you can assign your own custom command using the Keyboard page of the Options dialog box. For more information, see How to: Work with Shortcut Key Combinations.
To switch to a specific tool window in the IDE
Press ALT+F7 to display the IDE Navigator. Hold down the ALT key and press F7 repeatedly until you select the window you intend to switch to.
Tip
To reverse the order in which you go through the Active Tool Windows list, hold down the SHIFT + ALT keys and press F7.
See Also
Reference
Windows Dialog Box (Visual Studio)