ReSharper 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 FileStructureWindowEmbrace on the toolbar.

    You can remove any region by clicking the cross icon tab_close 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 FileStructureWindowCaret 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 FileStructureWindowScrollToSource on the toolbar.

This feature is supported in the following languages/technologies:

C# VB.NET C++ HTML ASPX Razor JavaScript TypeScript CSS XML XAML RESX Build Scripts
feature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_available

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.

See Also

Last modified: 27 August 2015