Monday, February 13, 2012

Visual Studio 2010 Keyboard Shortcuts (30+)

The Visual Studio 2010 integrated development environment (IDE) includes several pre-defined keyboard shortcut. Here is a list of more than 30 useful keyboard shortcuts that will make you a lot more productive.

Switching between Windows:
*. Ctrl+F6 – navigate between various panes that appear in the base code editing window.
*. Shift+Alt+Enter – full-screen mode at any time. In full-screen mode, only the active window is visible infull screen.
*. Alt+F6/Alt+Shift+F6 – move cursor away from the main editing section into docked windows like Properties, Help, Dynamic help, Server Explorer (if these windows are open).
*. F7 – Jump to Code Behind/Base Code editing window

Editing:
*. Ctrl+Shift+V – cycle through the clipboard ring.
*. Ctrl+- (Ctrl + Hyphen) – similar with Internet Explorer,very easy to navigate from page to page.
*. Ctrl+Shift+- – cycles in the opposite direction.
*. Block Selection – press Alt and then select the area you want with your mouse.
*. Line No in Code – Tools>Options>Text Editor>All Languages>General>Line numbers.
*. Ctrl+] – matching brace/comment/region/quote
*. F4 – Property Window
*. Ctrl+Alt+L – Solution Explorer
*. Ctrl+Alt+O – Output Window
*. Ctrl+Alt+K – Task List
*. Ctrl+Shift+Space – intelligence window.
*. Ctrl+R – Word Wrap

Code Format:
*. Ctrl+K, Ctrl+F – Auto-format selection
*. Ctrl+U – Convert to lower case
*. Ctrl+Shift+U – Convert to upper case
*. Ctrl+K, Ctrl+C – Comment selection
*. Ctrl+K, Ctrl+U – Uncomment selection

Code Outline:
*. Ctrl+M, Ctrl+M – Fold/Unfold the current code block
*. Ctrl+M, Ctrl+L – Unfold all
*. Ctrl+M, Ctrl+P – Stop outlining
*. Ctrl+M, Ctrl+O – Fold all

Running/Debugging:
*. F5 – Start Application in debug Mode
*. Ctrl+F5 – Start Without debugging
*. F11 – Step into
*. F10 – Step over
*. Shift + F11 – Step Out
*. Shift + F5 – Stop debugging
*. Ctrl+Shift+F5 – Restart Debugging

1 comment:

  1. Hey I know this is off topic but I was wondering if you knew
    of any widgets I could add to my blog that automatically
    tweet my newest twitter updates. I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.
    Here is my blog post :: casino

    ReplyDelete