Visual StudioTips and TricksZain Naboulsi
Developer Evangelist
Microsoft
Email:[email protected]:@zainnab
Blog:blogs.msdn.com/
zainnab
http://www.amazon.com/Coding-Faster-Getting-Productive-Microsoft/dp/0735649928/
Agenda
Why?
Visual Studio 2010 Productivity
Productivity for Any Version
Final Thoughts
Why?
How I Got Involved…
Sara Ford and I met at DevLink in 2009 to discuss how to continue the series
After several months of conversations I agreed to carry on the series
VS2010 Tips and Tricks went live on Jan 1, 2010
http://blogs.msdn.com/ZainNab
Why?
Quick Test: Which product do you spend more time in: Visual Studio or (Word, Excel, Power Point)?
Most of the content out there doesn’t really focus on Visual Studio as a product that you live in daily
If I can shave just a little time off your coding efforts then you can go home, be with your family, play video games, or whatever you want to do -- earlier
Visual Studio 2010
Start Page
Pin projects
Close after load
New Project Dialog
Recent Templates
Online Templates
Sort by
Search
ZoomCTRL + Mouse Wheel
New feature that enhances the size of your code
Very useful for pair programming (or similar scenarios)
Reference HighlightingAutomatic highlighting of a symbol
Can be used with declarations and references, and many other symbols
CTRL+SHIFT+DOWN ARROW (forward)
CTRL+SHIFT+UP ARROW (reverse)
Box Selection
SHIFT + ALT + [ARROW]
AKA “Vertical Selection”
Two new features:Zero-length selectionCopy single / Paste multiple
Improved IntelliSense
Changed from “begins with” to “includes”
Sensitive to Pascal Case
Tools
Document Tabs to the Right
Tools -> Options -> Documents
Puts new tabs to the right of existing ones
Multi-Monitor Support
Can now drag document windows out of the IDE
Each window is independent
Call Hierarchy (C++, C# Only)
CTRL + ALT + K
Available in C#
Used to see calls to and from a method
Great way to see calls at design time
Searching the Toolbox
/ = Collapse All
* = Expand All
Type any text to searchNOTE: “begins with”
TAB = Find Next
Debugging
Breakpoint Labels
Searching Breakpoints
Import / Export Breakpoints
Data Tips
Tips for Almost Any Version
Move or Select Between Matching Braces
CTRL + ]
CTRL + SHIFT + ]
Quickly move between matching braces
C++, C# Only
Don’t Copy a Blank Line
Errors in the Output Window
Navigates errors in the Output Window
F8(forward)
SHIFT + F8 (reverse)
File Tab
Command Prompt History
F7
Show the list of commands used during any command line session
Allows for quick access to commands