visual studio tips and tricks

16
Visual Studio Tips and Tricks

Upload: taylor

Post on 26-Feb-2016

40 views

Category:

Documents


0 download

DESCRIPTION

Visual Studio Tips and Tricks. Credits. Zain Naboulsi Microsoft Developer Evangelist blogs.msdn.com/ visualstudiotips @ zainnab isbn : 0735649928. Pin Favorite Startup Projects. Start Page. Understanding Command. Tools > Options > Environment > Keyboard Assign Shortcut Key to Command - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Visual Studio Tips and Tricks

Visual Studio Tips and Tricks

Page 2: Visual Studio Tips and Tricks

Credits• Zain Naboulsi• Microsoft Developer Evangelist• blogs.msdn.com/visualstudiotips• @zainnab• isbn: 0735649928

Page 3: Visual Studio Tips and Tricks

Pin Favorite Startup Projects• Start Page

Page 4: Visual Studio Tips and Tricks

Understanding Command• Tools > Options > Environment >

Keyboard• Assign Shortcut Key to Command• Test Command (Project.AddClass)• Run from Command Window, Menu,

Shortcut Keys• Command Window: CTRL + ALT + A

Page 5: Visual Studio Tips and Tricks

Item / Project Templates• File > Export Template• Create your own templates (project /

item)• Create from existing item• Add references in the template• Search project: CTRL + E (New

Project window)

Page 6: Visual Studio Tips and Tricks

Searching in Toolbox• View Toolbox: CTRL + ALT + X• Expand All: /• Collapse All: *• Next Result: TAB• Cancel: ESC

Page 7: Visual Studio Tips and Tricks

Navigate Code• Matching Braces: CTRL + ]• Backward / Forward: CTRL + -; CTRL

+ SHIFT + -• Select to last marker: CTRL + =• Insert above line: CTRL + Enter• Backspace one word: CTRL +

Backspace• Goto line: CTRL + G

Page 8: Visual Studio Tips and Tricks

Zero-Length Box Selection• SHIFT + ALT + Arrow keys– Type and text selection

• ALT + Left Mouse– Type and text selection

• Select + Paste– Replacing Text with Box Selection

Page 9: Visual Studio Tips and Tricks

Using New IntelliSense: Keywords

• Visual Studio 2010• CTRL + J

Page 10: Visual Studio Tips and Tricks

Multiple Startup Projects• Solution Properties

Page 11: Visual Studio Tips and Tricks

Generate From Usage• Automatically create stub code• Use classes and members before

defined• Easily add namespace (using or full

name)

Page 12: Visual Studio Tips and Tricks

Data Tips• Debug mode allow view of data tips• Data tips can be pinned• Pinned data tips can be imported /

exported– Debug > Import / Export Data Tips

Page 13: Visual Studio Tips and Tricks

Accessing Tool Window’s Toolbar

• SHIFT + ALT• Navigate with arrow keys

Page 14: Visual Studio Tips and Tricks

Split Code Windows• Split horizontally and vertically• Horizontal: ALT + W, P• Vertical: ALT + W, V• New window: ALT + W, N

Page 15: Visual Studio Tips and Tricks

Zoom In or Out of Text in Editor

• CTRL + Mouse Wheel

Page 16: Visual Studio Tips and Tricks

Navigate Properties Windows

• CTRL + PgUp• CTRL + PgDn