Rider Help

Viewing File Structure

Ctrl+Alt+7

With Rider, you can view the structure of the current document using the 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.

Right from the File Structure window, you can perform refactorings. To check the available commands, right-click on any symbol.

To analyze the structure of the current document

  1. Press Ctrl+Alt+7 or choose View | Tools Windows | Structure.
  2. Use the 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.

  4. To synchronize the way you change caret position in the editor with the symbol highlighted in the File Structure window, click Autorscroll from source /help/img/dotnet/2017.2/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 Autorscroll to source /help/img/dotnet/2017.2/ThemedIcon.SyncViewToCaret.Screen.[Gray].png on the toolbar.
/help/img/rider/2017.1/file_structure.png
Last modified: 11 October 2017

See Also