Time Saver: Visual Studio Shortcut F7 (code/markup)

Tuesday, 15 April 2008 15:59 by snyhol

A handy keyboard shortcut when writing code in Visual Studio is F7. 

When viewing markup (ASP.NET, XAML, etc.), this shortcut will quickly open the codebehind for the currently open markup file.  Much faster than trying to find the file in the Solution Explorer and double click it.  Nice time saver! 

It can also work the other way - opening the markup file for the codebehind currently being viewed.  CAUTION!  It opens the markup in designer mode.  If you like working with markup in Source view, you won’t like using F7 to open the markup file.

For more shortcuts, see Jeff Atwood's favorite shortcuts, Boyan Kostadinov's Top 13 Visual Studio Keyboard Shortcuts, Francesco's Under-documented shortcut keys in Visual Studio 2003, and Dan Haught's Visual Studio .NET Tips and Tricks.  If you really want to be schooled, download the Visual Studio 2008 C# Keybindings Reference Poster / VB Keybindings Reference Poster or try reading Jeff Atwood’s incredibly thorough keyboard shortcut reference, complete with cool CSS styling for the keys!

What are your favorite Visual Studio shortcuts?

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

September 5. 2008 13:50