Udostępnij za pośrednictwem


How to: Work with Folders in Class View

Class View allows you to create virtual folders to organize frequently used symbols and provide quick access to them. These virtual folders are saved in the active solution (.suo) file.

To create a new folder, select the New Folder button on the Class View toolbar. If an existing folder node is selected, a new subfolder is created within it. Otherwise, a top-level folder is created. You can drag both symbols and other folders into a Class View folder.

Class View folders offer an alternate view of selected symbols in your projects. Copying symbols into folders or removing symbols from them has no effect on your code. These virtual folders serve only as organizational and navigational aids.

Note

After you rename or delete a symbol in your code, it might continue to appear as an error node within a Class View folder. To correct this problem, delete the error node from the folder. If a symbol has been renamed, drag it from the Class View tree into the folder again.

To create a virtual folder in Class View

  1. Select a project or object node.

    —or—

    Select an existing folder.

  2. Click the New Folder button on the Class View toolbar.

  3. Type a name for the new folder and press ENTER.

To remove a selected folder

  • Choose Delete on the Edit menu.

    —or—

    Right-click the folder and choose Delete from its shortcut menu.

To add symbols to a folder

  1. Select one or more symbols, using the SHIFT and CTRL keys.

  2. Drag the selected symbols into the desired folder.

Note

You can also copy and paste symbols within Class View.

To remove a selected item from a folder

  • Choose Delete on the Edit menu.

    —or—

    Right-click the item and choose Delete from its shortcut menu.

To rename a selected folder

  1. Press F2, or right-click the folder and choose Rename.

  2. Type the new folder name and press ENTER. To cancel the renaming, press ESC.

    Note

    Two folders at the same level cannot share the same name.

To move a folder

  • Right-click the folder and choose Move To Top from its shortcut menu.

    —or—

    Drag the folder to a new location.

See Also

Tasks

How to: Work with Class View

How to: Search for Objects, Definitions, and References (Symbols)

Reference

Class View

Object Browser

Class View and Object Browser Icons

Other Resources

Viewing Classes and Their Members

Browsing Through Code and Components