visual studio tips and tricks

30
Visual Studio Tips and Tricks Zain Naboulsi Developer Evangelist Microsoft Email: [email protected] Twitter: @zainnab Blog: blogs.msdn.com/ zainnab

Upload: zain-naboulsi

Post on 13-Dec-2014

1.954 views

Category:

Education


3 download

DESCRIPTION

Most of us use Visual Studio but do we really know how to USE it? This session looks at the top tips and tricks that can jet propel your use of the IDE. Marvel as we move from simple editor features that you never think about all the way to arcane command prompt tricks that you can use to improve your programming experience.

TRANSCRIPT

Page 1: Visual Studio Tips and Tricks

Visual StudioTips and TricksZain Naboulsi

Developer Evangelist

Microsoft

Email:[email protected]:@zainnab

Blog:blogs.msdn.com/

zainnab

Page 2: Visual Studio Tips and Tricks

http://www.amazon.com/Coding-Faster-Getting-Productive-Microsoft/dp/0735649928/

Page 3: Visual Studio Tips and Tricks

Agenda

Why?

Visual Studio 2010 Productivity

Productivity for Any Version

Final Thoughts

Page 4: Visual Studio Tips and Tricks

Why?

Page 5: Visual Studio Tips and Tricks

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

Page 6: Visual Studio Tips and Tricks

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

Page 7: Visual Studio Tips and Tricks

Visual Studio 2010

Page 8: Visual Studio Tips and Tricks

Start Page

Pin projects

Close after load

Page 9: Visual Studio Tips and Tricks

New Project Dialog

Recent Templates

Online Templates

Sort by

Search

Page 10: Visual Studio Tips and Tricks

ZoomCTRL + Mouse Wheel

New feature that enhances the size of your code

Very useful for pair programming (or similar scenarios)

Page 11: Visual Studio Tips and Tricks

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)

Page 12: Visual Studio Tips and Tricks

Box Selection

SHIFT + ALT + [ARROW]

AKA “Vertical Selection”

Two new features:Zero-length selectionCopy single / Paste multiple

Page 13: Visual Studio Tips and Tricks

Improved IntelliSense

Changed from “begins with” to “includes”

Sensitive to Pascal Case

Page 14: Visual Studio Tips and Tricks

Tools

Page 15: Visual Studio Tips and Tricks

Document Tabs to the Right

Tools -> Options -> Documents

Puts new tabs to the right of existing ones

Page 16: Visual Studio Tips and Tricks

Multi-Monitor Support

Can now drag document windows out of the IDE

Each window is independent

Page 17: Visual Studio Tips and Tricks

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

Page 18: Visual Studio Tips and Tricks

Searching the Toolbox

/ = Collapse All

* = Expand All

Type any text to searchNOTE: “begins with”

TAB = Find Next

Page 19: Visual Studio Tips and Tricks

Debugging

Page 20: Visual Studio Tips and Tricks

Breakpoint Labels

Page 21: Visual Studio Tips and Tricks

Searching Breakpoints

Page 22: Visual Studio Tips and Tricks

Import / Export Breakpoints

Page 23: Visual Studio Tips and Tricks

Data Tips

Page 24: Visual Studio Tips and Tricks

Tips for Almost Any Version

Page 25: Visual Studio Tips and Tricks

Move or Select Between Matching Braces

CTRL + ]

CTRL + SHIFT + ]

Quickly move between matching braces

C++, C# Only

Page 26: Visual Studio Tips and Tricks

Don’t Copy a Blank Line

Page 27: Visual Studio Tips and Tricks

Errors in the Output Window

Navigates errors in the Output Window

F8(forward)

SHIFT + F8 (reverse)

Page 28: Visual Studio Tips and Tricks

File Tab

Page 29: Visual Studio Tips and Tricks

Command Prompt History

F7

Show the list of commands used during any command line session

Allows for quick access to commands

Page 30: Visual Studio Tips and Tricks