Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Visual studio tips and tricks

1,775 views

Published on

Published in: Technology
  • Be the first to comment

Visual studio tips and tricks

  1. 1. Visual Studio Tips and Tricks<br />
  2. 2. Credits<br />ZainNaboulsi<br />Microsoft Developer Evangelist<br />blogs.msdn.com/visualstudiotips<br />@zainnab<br />isbn: 0735649928<br />
  3. 3. Pin Favorite Startup Projects<br />Start Page<br />
  4. 4. Understanding Command<br />Tools > Options > Environment > Keyboard<br />Assign Shortcut Key to Command<br />Test Command (Project.AddClass)<br />Run from Command Window, Menu, Shortcut Keys<br />Command Window: CTRL + ALT + A<br />
  5. 5. Item / Project Templates<br />File > Export Template<br />Create your own templates (project / item)<br />Create from existing item<br />Add references in the template<br />Search project: CTRL + E (New Project window)<br />
  6. 6. Searching in Toolbox<br />View Toolbox: CTRL + ALT + X<br />Expand All: /<br />Collapse All: *<br />Next Result: TAB<br />Cancel: ESC<br />
  7. 7. Navigate Code<br />Matching Braces: CTRL + ]<br />Backward / Forward: CTRL + -; CTRL + SHIFT + -<br />Select to last marker: CTRL + =<br />Insert above line: CTRL + Enter<br />Backspace one word: CTRL + Backspace<br />Goto line: CTRL + G<br />
  8. 8. Zero-Length Box Selection<br />SHIFT + ALT + Arrow keys<br />Type and text selection<br />ALT + Left Mouse<br />Type and text selection<br />Select + Paste<br />Replacing Text with Box Selection<br />
  9. 9. Using New IntelliSense: Keywords<br />Visual Studio 2010<br />CTRL + J<br />
  10. 10. Multiple Startup Projects<br />Solution Properties<br />
  11. 11. Generate From Usage<br />Automatically create stub code<br />Use classes and members before defined<br />Easily add namespace (using or full name)<br />
  12. 12. Data Tips<br />Debug mode allow view of data tips<br />Data tips can be pinned<br />Pinned data tips can be imported / exported<br />Debug > Import / Export Data Tips<br />
  13. 13. Accessing Tool Window’s Toolbar<br />SHIFT + ALT<br />Navigate with arrow keys<br />
  14. 14. Split Code Windows<br />Split horizontally and vertically<br />Horizontal: ALT + W, P<br />Vertical: ALT + W, V<br />New window: ALT + W, N<br />
  15. 15. Zoom In or Out of Text in Editor<br />CTRL + Mouse Wheel<br />
  16. 16. Navigate Properties Windows<br />CTRL + PgUp<br />CTRL + PgDn<br />

×