Visual Studio notes

Shortcuts

  • ctor<tab><tab> : insert constructor snippet
  • cw<tab><tab> : insert Console.WriteLine()
  • for<tab><tab> : insert for loop snippet
  • foreach<tab><tab> : insert foreach loop snippet
  • prop<tab><tab> : insert property (short form)
  • propfull<tab><tab> : insert property (long form useful when you need to code getter/setter)
  • Ctrl-. : Quick actions
  • Ctrl-E, Ctrl-D : Format Document
  • Ctrl-M, Ctrl-O : Collapse to definitions
  • Ctrl-M, Ctrl-E : Expand current
  • Ctrl-M, Ctrl-L : Toggle expand/collapse all
  • Ctrl-; : Search Solution Explorer
  • Ctrl-Tab : Switch between tabs
  • F5 : Start (with debugging)
  • Ctrl-F5 : Start without debugging
  • F6 : Build
  • F10: Step Over
  • F11: Step Into
  • F12 (while hovering over an item in the source editor): go to Definition

 


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.