Viewing File Structure
With ReSharper, you can view the structure of the current document using the File Structure window, which greatly simplifies navigation in large files. The window is synchronized with the editor. As you switch to another editor tab, the window displays the structure of the corresponding file.
You can drag-n-drop types and type members to rearrange their order. Your changes are immediately reflected in the file.
To analyze the structure of the current document
- Press Ctrl+F11 or choose in the main menu. Alternatively, you can press Ctrl+Shift+A, start typing the command name in the pop-up, and then choose it there.
- Use the File Structure window to explore and navigate through the document. You can double-click any symbol to make the caret in the editor switch to the corresponding position.
If some parts of the code are surrounded by
#regionblocks, the regions appear in the file structure too.
You can wrap symbols into a region right from the file structure. To do so, select the members you want to wrap (Ctrl - click items for multiple selection), and then click Surround with Region on the toolbar.
You can remove any region by clicking the cross icon in the upper right corner of the region frame.
To rename a region, double-click its name or press F2 over it, and then type the new name.
- To synchronize the way you change caret position in the editor with the symbol highlighted in the File Structure window, click Track Caret in Editor on the toolbar.
- To synchronize symbols that you select in the File Structure window with the caret position in the editor, click Automatically Scroll to Source on the toolbar.
This feature is supported in the following languages and technologies:
The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see corresponding topics in the ReSharper by Language section.