ReSharper 2017.1 Help

Viewing File Structure

ReSharper | Windows | File Structure
Ctrl+F11
ReSharper_ShowCodeStructure

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.

Right from the File Structure window, you can navigate from symbols, find usages of symbols and perform refactorings. To check the available commands, right-click on any symbol.

To analyze the structure of the current document

  1. Press Ctrl+F11 or choose ReSharper | Windows | File Structure in the main menu.
  2. 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.
  3. If some parts of the code are surrounded by #region blocks, 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 /help/img/dotnet/2017.1/ThemedIcon.Enregion.Screen.[Gray].png on the toolbar.

    You can remove any region by clicking the cross icon /help/img/dotnet/2017.1/ThemedIcon.Close.Screen.[Gray].png 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.

  4. 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 /help/img/dotnet/2017.1/ThemedIcon.SyncCaretToView.Screen.[Gray].png on the toolbar.
  5. To synchronize symbols that you select in the File Structure window with the caret position in the editor, click Automatically Scroll to Source /help/img/dotnet/2017.1/ThemedIcon.SyncViewToCaret.Screen.[Gray].png on the toolbar.

This feature is supported in the following languages/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.

Last modified: 12 October 2017

See Also