Take control of your file structure with ReSharper

Mikhail Kropotov

One of the new navigation features of ReSharper 2.0 is the very useful File Structure View. It lets you see the structure of your files and manage it easily.
Here is a File Structure view at a glance:
File Structure helps you keep track of and manage the structure of your code
With File Structure you can:

  • Get a quick overview of the current file:
    • properties, fields and methods can be easily identified by unique icons;
    • methods that override, implement or hide other methods are shown as such;
  • Enclose any part of the current file with a #region (and also collapse and close existing regions);
  • Rearrange file elements by simply dragging nodes in the view (between regions and within the overall file);
  • Navigate to source for any type or member with a double-click;
  • Apply a refactoring to a type or member with a simple right-click.

The view stays synchronized with the current file opened in the editor. You can choose to auto-track the caret in the editor and, vice versa, to auto-navigate to source as you change selection in the File Structure view.
To open the view, click ReSharper | Window | File Structure in the main menu.
For more details about File Structure window, see this ReSharper Help topic:

Technorati tags: , ,
Comments below can no longer be edited.

3 Responses to Take control of your file structure with ReSharper

  1. Ward Bekker says:

    July 6, 2006

    Nice feature! At first I was a bit confused, because there is already a window called “File Structure Popup”, that is accessible with the shortcut CTRL-F12. I would suggest to change the menu item naming to make the difference more clear. Like File Structure Editing / File Structure Navigation.


  2. Alex Hoffman says:

    July 9, 2006

    Sadly the placement of the window doesn’t appear to persist between sessions on VS2005. It’s annoying to have to reopen the window each time.

    Also, the window doesn’t appear to sync with the open source code file after it is opened the first time.

  3. Dmitry Shaporenkov says:

    July 28, 2006

    Hi Alex,

    you’re right – the problem with ReSharper tool windows not persisting their position is generic (in the sense it applies to all tool windows) and very annoying. Unfortunately, we will be able to address it only in the next major release. Sorry for inconvenience.


Subscribe to .NET Tools updates