views:

2581

answers:

5

I use the SHIFT-F7 often to switch between source and design view.

Does anyone know of a hotkey to switch between the source file and its code behind file, e.g. between (Default.aspx and Default.aspx.cs)?

+2  A: 

Just drop the shift, it's F7

Cristian Libardo
+7  A: 

F7

splattne
+18  A: 

Yep just F7

Look at this poster for C# VS2008 shortcuts

You can also bind it to any combination of keys you like, go to tools, options (show all settings) environment, keybord, Show Commands for View.ViewCode and change to your liking.

Added by Rob Cooper:

For 2005 Users: Visual C# 2005 Keyboard Shortcut Reference Poster

For 2010 Users: Visual C# 2010 Keyboard Shortcut Reference Poster

KeesDijk
Dude, why you have not got a +1 for the poster link, I do not know. Far more useful than just the one keystroke. +1 from me.
Rob Cooper
I didn't want to vote you up but Rob Cooper made me do it :-)
Mendelt
LOL! :) Thanks Mendelt :)
Rob Cooper
@Rob thanks for adding the VS2005 poster.
KeesDijk
A: 

Try Ctrl + PageUp to toggle between design view and code behind.

dotnetcoder
CTRL+PageUp does not toggle between design view and code behind, but it DOES toggle between the three: source/split/design views. Nice!
Edward Tanguay
+1  A: 

When in code view use shift-f7 to get to the designer. When in the designer use f7 to get back to code.

Hans Karlsen