Sign in
[Profoundly Esoteric Image]
GarethJ's WebLog - Code generation and abstraction
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Blog Home
Email Blog Author
Share this
RSS for posts
RSS for comments
Search
Tags
Built with DSL Tools
Code Generation
Code samples
Community
DSL Tools
Enterprise Development
Fun
Metablog
Modeling
Pages
Razor
Sounding off
SP1
T4
Tech thrills
The real world
UML
Visual Studio
Visual Studio 11 Beta
Visual Studio 2012
VSX
Archive
Archives
June 2012
(1)
April 2012
(1)
November 2011
(1)
September 2011
(1)
June 2011
(1)
May 2011
(1)
April 2011
(1)
March 2011
(2)
January 2011
(6)
December 2010
(2)
August 2010
(1)
June 2010
(1)
April 2010
(2)
March 2010
(1)
October 2009
(1)
September 2009
(6)
May 2009
(3)
February 2009
(4)
January 2009
(2)
November 2008
(6)
October 2008
(5)
September 2008
(3)
July 2008
(2)
May 2008
(4)
April 2008
(4)
March 2008
(2)
February 2008
(9)
January 2008
(9)
December 2007
(6)
November 2007
(1)
October 2007
(3)
September 2007
(5)
August 2007
(3)
July 2007
(3)
June 2007
(5)
May 2007
(6)
April 2007
(1)
March 2007
(2)
February 2007
(5)
January 2007
(3)
December 2006
(2)
November 2006
(2)
October 2006
(3)
September 2006
(3)
August 2006
(2)
July 2006
(2)
June 2006
(5)
May 2006
(1)
April 2006
(3)
March 2006
(1)
February 2006
(3)
January 2006
(3)
December 2005
(10)
November 2005
(5)
October 2005
(3)
September 2005
(8)
August 2005
(2)
July 2005
(4)
June 2005
(5)
May 2005
(6)
April 2005
(2)
March 2005
(4)
February 2005
(4)
January 2005
(5)
December 2004
(9)
November 2004
(4)
October 2004
(13)
August 2004
(4)
July 2004
(2)
Keyboard shortcuts for navigation on the DSL design surface
MSDN Blogs
>
[Profoundly Esoteric Image]
>
Keyboard shortcuts for navigation on the DSL design surface
Keyboard shortcuts for navigation on the DSL design surface
GarethJones
16 Nov 2005 6:09 PM
Comments
1
I was just dealing with an issue raised on our MSDN Product Feedback center and I realized it might have broader appeal.
Keyboard navigation in either the DSL Tools or the Visual Studio 2005 Class Designer and Distributed Systems Designers has a few wrinkles that aren't at all obvious until you go and look at the docs - not a task most of us are keen to do at the best of times.
The context for this was to document how to manipulate connectors on the diagram using the keyboard to produce the kind of manual layout of lines that you can do relatively easily with the mouse.
You couldn't accuse us of making this discoverable, but here's how to make it work:
1) Hit TAB repeatedly until you get to the connector you want to amend.
2) (Here's the science part) Hit ">" to drill into the sub-elements of the connector - yeah right, like I'm guessing that (sorry, Rory moment there).
3) Hit TAB repeatedly until you get to the endpoint or line segment you want to move.
4) Use cursor keys to move endpoint or line segment - phew!
That's the theory at least. While checking this out, I noticed that in the current builds of the DSL Tools we only allow the endpoints of lines to be moved like this, not the line segments. I've raised the bug. It works fine in the Class Designer.
Here's the basic list of shortcuts for the design surface - some designers may choose to do slightly different things by overriding these, but you get the general flavour.
Toggle Selection
Space/Enter
Toggles selection on a shape which has focus.
Cancel Selection
Esc
Cancels the current selection.
Select All
Ctrl + A
Selects all the shapes on the design surface.
Move up
Up arrow
Moves shape up one grid increment.
If in a list, moves to the previous sibling subfield.
Move down
Down arrow
Moves shape down one grid increment.
If in a list, moves to the next sibling subfield.
Move left
Left arrow
Moves shape left one grid increment.
If in a list, moves to the previous sibling subfield.
Move right
Right arrow
Moves shape right one grid increment.
If in a list, moves to the next sibling subfield.
Size shape up
Shift + up arrow
Increases the height of the shape by one grid increment.
Size shape down
Shift + down arrow
Reduces the height of the shape by one grid increment.
Size shape left
Shift + left arrow
Reduces the width of the shape by one grid increment.
Size shape right
Shift + right arrow
Increases the width of the shape by one grid increment.
First Peer
Home
Moves focus and selection to the first shape on the design surface at the same peer level.
Last Peer
End
Moves focus and selection to the last shape on the design surface at the same peer level.
First Peer (focus)
Ctrl + Home
Same as first peer, but moves focus instead of moving focus and selection.
Last Peer (focus)
Ctrl + End
Same as last peer, but moves focus instead of moving focus and selection.
Next Peer
Tab
Moves focus and selection to the next shape on the design surface at the same peer level.
Previous Peer
Shift+Tab
Moves focus and selection to the previous shape on the design surface at the same peer level.
Next Peer (focus)
Alt+Ctrl+Tab
Same as next peer, but moves focus instead of moving focus and selection.
Previous Peer (focus)
Alt+Ctrl+Shift+Tab
Same as previous peer, but moves focus instead of moving focus and selection.
Ascend
<
Moves to the next shape on the design surface one level higher in the hierarchy. If there are no shapes above this shape in the hierarchy (i.e. the shape is placed directly on the design surface), the diagram is selected.
Descend
>
Moves to the next contained shape on the design surface one level below this one in the hierarchy. If there are no contained shapes, this is a no-op.
Ascend (focus)
Ctrl + <
Same as ascend command, but moves focus without selection.
Descend (focus)
Ctrl + >
Same as descend command, but moves focus without selection.
Follow to connected
Shift + End
From a shape, moves to a shape which this shape is connected to.
Delete
Del
Delete a shape or connector from the diagram.
Scroll diagram up
Pg Up
Scrolls the design surface up, in increments equal to 75% of the height of the currently visible design surface.
Scroll diagram down
Pg Down
Scrolls the design surface down.
Scroll diagram right
Shift + Pg Down
Scrolls the design surface to the right.
Scroll diagram left
Shift + Pg Up
Scrolls the design surface to the left.
Enter edit mode
F2
Standard keyboard shortcut for entering edit mode for a text control.
Display shortcut menu
Shift + F10
Standard keyboard shortcut for displaying a selected item’s shortcut menu.
Zoom In
Control + Shift + '+'
Control + MouseWheel forward
Zooms in on the center of the Diagram View.
Zoom Out
Control + Shift + '-'
Control + MouseWheel backward
Zooms out from the center of the Diagram View. It re-centers the diagram when you zoom out too far for the current diagram center.
Zoom Area
Control + Shift + Draw a rectangle with the left mouse button down
Zooms 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.
Edited: Updated to include the three extra shortcuts that
Pedro
posted
.
1 Comments
Modeling
,
DSL Tools
Blog - Comment List MSDN TechNet
Comments
Loading...