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.
The options available in dialog boxes, and the names and locations of menu commands you see, might differ from what is described in this article, depending on your active settings or edition. This article was written with General settings in mind. To change your settings, for example to General or Visual C++ settings, choose Tools > Import and Export Settings, and then choose Reset all settings.
Almost every menu command in Visual Studio has a keyboard shortcut. You can also create your own custom shortcuts. For more information, see Identify and customize keyboard shortcuts.
You can use several methods to move through the files open in the editor. You can move among files based on the order in which you access them, use the IDE Navigator to quickly find any file currently open, or pin favorite files to the tab well so that they are always visible.
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 a browser.
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 (shown below) 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 Shift+Alt+F7 to Window.PreviousDocumentWindowNav and Alt+F7 to Window.NextDocumentWindowNav .
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 Identify and customize keyboard shortcuts.
Tip To reverse the order in which you go through the Active Files list, hold down the Ctrl+Shift keys and press Tab.
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 .
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 Identify and customize keyboard shortcuts.
Tip To reverse the order in which you go through the Active Tool Windows list, hold down the Shift+Alt keys and press F7.