Class Diagram Shortcut Keys, Visual C# Scheme

The following shortcut key combinations can be used only when you work with class diagrams.

Note

When you select Visual C# Development Settings in the Import and Export Settings Wizard, the Visual C# 2005 keyboard mapping scheme is applied. Visual C# 2005 is the current keyboard mapping scheme. This is the keyboard mapping scheme that is applied to the integrated development environment (IDE) at initial startup. For more information, see How to: Change Select Settings.

To switch to the Visual C# keyboard mapping scheme

  1. On the Tools menu, click Options.

  2. Expand Environment, and then click Keyboard.

  3. Select Visual C# 2005 from the Apply the following application keyboard mapping scheme drop-down list.

Command Name

Shortcut Keys

Description

ClassDiagram.Collapse

NUM - (MINUS SIGN)

Collapses expanded nodes in the Class Details window or collapses the selected shape compartment in the diagram.

ClassDiagram.Expand

NUM + (PLUS SIGN)

Expands collapsed nodes in the Class Details window or expands the selected shape compartment in the diagram.

Edit.Delete

CTRL + DELETE

Removes the selected item from the class diagram.

Edit.ExpandCollapseBaseTypeList

SHIFT + ALT + B

Expands or collapses base types in the selected shape compartment.

For example, if Interface1 inherits from Interface2, Interface3, and Interface4, the parental interfaces are listed on the shape compartment for Interface1. By using this command, you can collapse the list of inherited interfaces to show only summary information about the number of base interfaces inherited by Interface1.

Edit.NavigateToLollipop

SHIFT + ALT + L

Selects the Interface Lollipop for a shape compartment. The lollipop appears on shapes that implement one or more interfaces.

Edit.RemoveFromDiagram

DELETE

Removes the selected shape compartment from the diagram.

View.ViewCode

ENTER

- or -

F7

For the selected item, opens the corresponding file and puts the cursor in the correct location.

See Also

Concepts

Visual C# Default Shortcut Keys

Other Resources

Working with Class Diagrams