Entity Framework Tools Keyboard Shortcuts

 

Updated: October 23, 2016

This page provides a list of keyboard shorcuts that are available in the various screens of the Entity Framework Tools for Visual Studio.

Step One: Choose Model Contents

WizardOne

ShortcutActionNotes
Alt+nMove to next screenNot available for all selections of model contents.
Alt+fFinish wizardNot available for all selections of model contents.
Alt+wSwitch focus to the “What should the model contain?” pane.

Step Two: Choose Your Connection

WizardTwo

ShortcutActionNotes
Alt+nMove to next screen
Alt+pMove to previous screen
Alt+wSwitch focus to the “What should the model contain?” pane.
Alt+cOpen the “Connection Properties” windowAllows for the definition of a new database connection.
Alt+eExclude sensitive data from the connection string
Alt+iInclude sensitive data in the connection string
Alt+sToggle the “Save connection settings in App.Config” option

Step Three: Choose Your Version

WizardThree

ShortcutActionNotes
Alt+nMove to next screen
Alt+pMove to previous screen
Alt+wSwitch focus to Entity Framework version selectionAllows for specifying a different version of Entity Framework for use in the project.

Step Four: Choose Your Database Objects and Settings

WizardFour

ShortcutActionNotes
Alt+fFinish wizard
Alt+pMove to previous screen
Alt+wSwitch focus to database object selection paneAllows for specifying database objects to be reverse engineered.
Alt+sToggle the “Pluralize or singularize generated object names” option
Alt+kToggle the “Include foreign key columns in the model” optionNot available for all selections of model contents.
Alt+iToggle the “Import selected stored procedures and functions into the entity model” optionNot available for all selections of model contents.
Alt+mSwitches focus to the “Model Namespace” text fieldNot available for all selections of model contents.
SpaceToggle selection on elementIf element has children, all child elements will be toggled as well
LeftCollapse child tree
RightExpand child tree
UpNavigate to previous element in tree
DownNavigate to next element in tree

DesignerSurface

ShortcutActionNotes
Space/EnterToggle SelectionToggles selection on the object with focus.
EscCancel SelectionCancels the current selection.
Ctrl + ASelect AllSelects all the shapes on the design surface.
Up arrowMove upMoves selected entity up one grid increment.
If in a list, moves to the previous sibling subfield.
Down arrowMove downMoves selected entity down one grid increment.
If in a list, moves to the next sibling subfield.
Left arrowMove leftMoves selected entity left one grid increment.
If in a list, moves to the previous sibling subfield.
Right arrowMove rightMoves selected entity right one grid increment.
If in a list, moves to the next sibling subfield.
Shift + left arrowSize shape leftReduces the width of the selected entity by one grid increment.
Shift + right arrowSize shape rightIncreases the width of the selected entity by one grid increment.
HomeFirst PeerMoves focus and selection to the first object on the design surface at the same peer level.
EndLast PeerMoves focus and selection to the last object on the design surface at the same peer level.
Ctrl + HomeFirst Peer (focus)Same as first peer, but moves focus instead of moving focus and selection.
Ctrl + EndLast Peer (focus)Same as last peer, but moves focus instead of moving focus and selection.
TabNext PeerMoves focus and selection to the next object on the design surface at the same peer level.
Shift+TabPrevious PeerMoves focus and selection to the previous object on the design surface at the same peer level.
Alt+Ctrl+TabNext Peer (focus)Same as next peer, but moves focus instead of moving focus and selection.
Alt+Ctrl+Shift+TabPrevious Peer (focus)Same as previous peer, but moves focus instead of moving focus and selection.
<AscendMoves to the next object on the design surface one level higher in the hierarchy. If there are no shapes above this shape in the hierarchy (i.e. the object is placed directly on the design surface), the diagram is selected.
>DescendMoves to the next contained object on the design surface one level below this one in the hierarchy. If there are no contained object, this is a no-op.
Ctrl + <Ascend (focus)Same as ascend command, but moves focus without selection.
Ctrl + >Descend (focus)Same as descend command, but moves focus without selection.
Shift + EndFollow to connectedFrom an entity, moves to an entity which this entity is connected to.
DelDeleteDelete an object or connector from the diagram.
InsInsertAdds a new property to an entity when either the “Scalar Properties” compartment header or a property itself is selected.
Pg UpScroll diagram upScrolls the design surface up, in increments equal to 75% of the height of the currently visible design surface.
Pg DownScroll diagram downScrolls the design surface down.
Shift + Pg DownScroll diagram rightScrolls the design surface to the right.
Shift + Pg UpScroll diagram leftScrolls the design surface to the left.
F2Enter edit modeStandard keyboard shortcut for entering edit mode for a text control.
Shift + F10Display shortcut menuStandard keyboard shortcut for displaying a selected item’s shortcut menu.
Control + Shift + Mouse Left Click  
 Control + Shift + MouseWheel forward
Semantic Zoom InZooms in on the area of the Diagram View beneath the mouse pointer.
Control + Shift + Mouse Right Click 
 Control + Shift + MouseWheel backward
Semantic Zoom OutZooms out from the area of the Diagram View beneath the mouse pointer. It re-centers the diagram when you zoom out too far for the current diagram center.
Control + Shift + '+' 
 Control + MouseWheel forward
Zoom InZooms in on the center of the Diagram View.
Control + Shift + '-' 
 Control + MouseWheel backward
Zoom OutZooms out from the clicked area of the Diagram View. It re-centers the diagram when you zoom out too far for the current diagram center.
Control + Shift + Draw a rectangle with the left mouse button downZoom AreaZooms in centered on the area that you've selected. When you hold down the Control + Shift keys, you'll see that the cursor changes to a magnifying glass, which allows you to define the area to zoom into.
Context Menu Key + ‘M’Open Mapping Details WindowOpens the Mapping Details window to edit mappings for selected entity

MappingDetailsShortcuts

ShortcutActionNotes
TabSwitch ContextSwitches between the main window area and the toolbar on the left
Arrow keysNavigationMove up and down rows, or right and left across columns in the main window area. Move between the buttons in the toolbar on the left.
Enter 
 Space
SelectSelects a button in the toolbar on the left.
Alt + Down ArrowOpen ListDrop down a list if a cell is selected that has a drop down list.
EnterList SelectSelects an element in a drop down list.
EscList CloseCloses a drop down list.

Entity Framework also supplies a number of actions that can have custom keyboard shortcuts mapped (no shortcuts are mapped by default). To create these custom shortcuts, click on the Tools menu, then Options. Under Environment, choose Keyboard. Scroll down the list in the middle until you can select the desired command, enter the shortcut in the “Press shortcut keys” text box, and click Assign. The possible shortcuts are as follows:

Shortcut
OtherContextMenus.MicrosoftDataEntityDesignContext.Add.ComplexProperty.ComplexTypes
OtherContextMenus.MicrosoftDataEntityDesignContext.AddCodeGenerationItem
OtherContextMenus.MicrosoftDataEntityDesignContext.AddFunctionImport
OtherContextMenus.MicrosoftDataEntityDesignContext.AddNew.AddEnumType
OtherContextMenus.MicrosoftDataEntityDesignContext.AddNew.Association
OtherContextMenus.MicrosoftDataEntityDesignContext.AddNew.ComplexProperty
OtherContextMenus.MicrosoftDataEntityDesignContext.AddNew.ComplexType
OtherContextMenus.MicrosoftDataEntityDesignContext.AddNew.Entity
OtherContextMenus.MicrosoftDataEntityDesignContext.AddNew.FunctionImport
OtherContextMenus.MicrosoftDataEntityDesignContext.AddNew.Inheritance
OtherContextMenus.MicrosoftDataEntityDesignContext.AddNew.NavigationProperty
OtherContextMenus.MicrosoftDataEntityDesignContext.AddNew.ScalarProperty
OtherContextMenus.MicrosoftDataEntityDesignContext.AddNewDiagram
OtherContextMenus.MicrosoftDataEntityDesignContext.AddtoDiagram
OtherContextMenus.MicrosoftDataEntityDesignContext.Close
OtherContextMenus.MicrosoftDataEntityDesignContext.Collapse
OtherContextMenus.MicrosoftDataEntityDesignContext.ConverttoEnum
OtherContextMenus.MicrosoftDataEntityDesignContext.Diagram.CollapseAll
OtherContextMenus.MicrosoftDataEntityDesignContext.Diagram.ExpandAll
OtherContextMenus.MicrosoftDataEntityDesignContext.Diagram.ExportasImage
OtherContextMenus.MicrosoftDataEntityDesignContext.Diagram.LayoutDiagram
OtherContextMenus.MicrosoftDataEntityDesignContext.Edit
OtherContextMenus.MicrosoftDataEntityDesignContext.EntityKey
OtherContextMenus.MicrosoftDataEntityDesignContext.Expand
OtherContextMenus.MicrosoftDataEntityDesignContext.FunctionImportMapping
OtherContextMenus.MicrosoftDataEntityDesignContext.GenerateDatabasefromModel
OtherContextMenus.MicrosoftDataEntityDesignContext.GoToDefinition
OtherContextMenus.MicrosoftDataEntityDesignContext.Grid.ShowGrid
OtherContextMenus.MicrosoftDataEntityDesignContext.Grid.SnaptoGrid
OtherContextMenus.MicrosoftDataEntityDesignContext.IncludeRelated
OtherContextMenus.MicrosoftDataEntityDesignContext.MappingDetails
OtherContextMenus.MicrosoftDataEntityDesignContext.ModelBrowser
OtherContextMenus.MicrosoftDataEntityDesignContext.MoveDiagramstoSeparateFile
OtherContextMenus.MicrosoftDataEntityDesignContext.MoveProperties.Down
OtherContextMenus.MicrosoftDataEntityDesignContext.MoveProperties.Down5
OtherContextMenus.MicrosoftDataEntityDesignContext.MoveProperties.ToBottom
OtherContextMenus.MicrosoftDataEntityDesignContext.MoveProperties.ToTop
OtherContextMenus.MicrosoftDataEntityDesignContext.MoveProperties.Up
OtherContextMenus.MicrosoftDataEntityDesignContext.MoveProperties.Up5
OtherContextMenus.MicrosoftDataEntityDesignContext.MovetonewDiagram
OtherContextMenus.MicrosoftDataEntityDesignContext.Open
OtherContextMenus.MicrosoftDataEntityDesignContext.Refactor.MovetoNewComplexType
OtherContextMenus.MicrosoftDataEntityDesignContext.Refactor.Rename
OtherContextMenus.MicrosoftDataEntityDesignContext.RemovefromDiagram
OtherContextMenus.MicrosoftDataEntityDesignContext.Rename
OtherContextMenus.MicrosoftDataEntityDesignContext.ScalarPropertyFormat.DisplayName
OtherContextMenus.MicrosoftDataEntityDesignContext.ScalarPropertyFormat.DisplayNameandType
OtherContextMenus.MicrosoftDataEntityDesignContext.Select.BaseType
OtherContextMenus.MicrosoftDataEntityDesignContext.Select.Entity
OtherContextMenus.MicrosoftDataEntityDesignContext.Select.Property
OtherContextMenus.MicrosoftDataEntityDesignContext.Select.Subtype
OtherContextMenus.MicrosoftDataEntityDesignContext.SelectAll
OtherContextMenus.MicrosoftDataEntityDesignContext.SelectAssociation
OtherContextMenus.MicrosoftDataEntityDesignContext.ShowinDiagram
OtherContextMenus.MicrosoftDataEntityDesignContext.ShowinModelBrowser
OtherContextMenus.MicrosoftDataEntityDesignContext.StoredProcedureMapping
OtherContextMenus.MicrosoftDataEntityDesignContext.TableMapping
OtherContextMenus.MicrosoftDataEntityDesignContext.UpdateModelfromDatabase
OtherContextMenus.MicrosoftDataEntityDesignContext.Validate
OtherContextMenus.MicrosoftDataEntityDesignContext.Zoom.10
OtherContextMenus.MicrosoftDataEntityDesignContext.Zoom.100
OtherContextMenus.MicrosoftDataEntityDesignContext.Zoom.125
OtherContextMenus.MicrosoftDataEntityDesignContext.Zoom.150
OtherContextMenus.MicrosoftDataEntityDesignContext.Zoom.200
OtherContextMenus.MicrosoftDataEntityDesignContext.Zoom.25
OtherContextMenus.MicrosoftDataEntityDesignContext.Zoom.300
OtherContextMenus.MicrosoftDataEntityDesignContext.Zoom.33
OtherContextMenus.MicrosoftDataEntityDesignContext.Zoom.400
OtherContextMenus.MicrosoftDataEntityDesignContext.Zoom.50
OtherContextMenus.MicrosoftDataEntityDesignContext.Zoom.66
OtherContextMenus.MicrosoftDataEntityDesignContext.Zoom.75
OtherContextMenus.MicrosoftDataEntityDesignContext.Zoom.Custom
OtherContextMenus.MicrosoftDataEntityDesignContext.Zoom.ZoomIn
OtherContextMenus.MicrosoftDataEntityDesignContext.Zoom.ZoomOut
OtherContextMenus.MicrosoftDataEntityDesignContext.Zoom.ZoomtoFit
View.EntityDataModelBrowser
View.EntityDataModelMappingDetails
Show: