ReSharper 2018.3 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:

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 from the main menu. Alternatively, you can press Ctrl+Shift+A, start typing the command name in the pop-up, and then choose it there.

  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 ThemedIcon Enregion Screen Gray on the toolbar.

    You can remove any region by clicking the cross icon ThemedIcon Close Screen Gray 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 ThemedIcon SyncCaretToView Screen Gray 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 ThemedIcon SyncViewToCaret Screen Gray on the toolbar.

This feature is supported in the following languages and technologies:

Language: C#

Language: VB.NET

Language: C++

Language: HTML

Language: ASP.NET

Language: Razor

Language: JavaScript

Language: TypeScript

Language: CSS

Language: XML

Language: XAML

Language: Resx

Language: Build Scripts

Language: Protobuf

Language: JSON

Feature is available

Feature is available

Feature is available

Feature is available

Feature is available

Feature is available

Feature is available

Feature is available

Feature is available

Feature is available

Feature is available

Feature is available

Feature is available

Feature is available

Feature is 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.

Last modified: 25 April 2019

See Also