Main Window Shortcut Keys

Shortcut

Menu equivalent

Action

F7

 

Opens the corresponding code-behind file (if applicable).

Shift-F7

 

Switches between markup and Design view for the page.

Esc key

 

Switches focus to the main code edit/designer window.

Ctrl-F2

 

Switches focus to the class selection combo in the main editor window.

Ctrl-F6

 

Switches the active file in the main editor window to the next tab.

Ctrl-Shift-F6

 

Switches the active file in the main editor window to the previous tab.

F6

 

If viewing a file in a split window, moves focus to the next split.

Shift-F6

 

If viewing a file in a split window, moves focus to the previous split.

Ctrl-Tab or Ctrl-Shift-Tab

 

Opens the Select Active Window dialog with focus on files.

Ctrl-Shift-Y

View → Synchronize Views

Synchronizes the contents of Source and Design views for the web page as seen in Split view.

Ctrl-PgDn, Ctrl-PgUp

 

Toggles between Design, Split, and Source views for web pages.

Design View Shortcut Keys

The following shortcut keys apply only when a page or form is shown in Design view in the main edit window (there are no menu equivalents).

Shortcut

Action

Ctrl-B

Turns HTML text bold (uses <b> tags).

Ctrl-L

Turns HTML text into a hyperlink (uses <a> tags).

Ctrl-Shift-L

Turns HTML text into a bookmark (uses <a> tags).

Ctrl-I

Makes HTML text italic (uses <i> tags).

Ctrl-U

Underlines selected HTML text.

Tab

Moves focus to the next control on the page (based on TabIndex values).

Shift-Tab

Moves focus to the previous control on the page (based on TabIndex values).

Down Arrow ...

Get Programming ASP.NET 3.5, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.