visual studio tips and tricks - advanced

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

Upload: zain-naboulsi

Post on 22-May-2015

931 views

Category:

Technology


5 download

DESCRIPTION

Created for the seasoned developer, this session explores the features that can, literally, save hours of work. Learn how to create your own templates all the way to special DevEnv switches you can use to quickly reconfigure your environment. These are the super tips that can turn a ten minute task into ten seconds.

TRANSCRIPT

Page 1: Visual Studio Tips and Tricks - Advanced

Visual StudioTips and Tricks

AdvancedZain Naboulsi

Developer Evangelist

Microsoft

Email:[email protected]:@zainnab

Blog:blogs.msdn.com/

visualstudiotips

Page 2: Visual Studio Tips and Tricks - Advanced

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

Page 3: Visual Studio Tips and Tricks - Advanced

User Groups

.NET User Groups BR, NOLA, Lafayette, Shreveport, and Hammond

ALM User GroupStarting Sept 2011 (Mike Moles)

SharePoint User GroupsBR, NOLA, Lafayette, and Shreveport

Page 4: Visual Studio Tips and Tricks - Advanced

Classic Help

Get your contents back

Just like “old school” help

Requires online help option

Page 5: Visual Studio Tips and Tricks - Advanced

Item / Project Templates

Roll your own templates for items and projects

Cut down significantly on time to get started coding

Page 6: Visual Studio Tips and Tricks - Advanced

ResetSettings Switch

Resets settings to defaults

Useful for multi-layout scenarios

Can export settings (like windows layouts) and modify shortcuts to use them

Page 7: Visual Studio Tips and Tricks - Advanced

Multiple Startup Projects

Solution Properties

Can set the order of startup for projects

Page 8: Visual Studio Tips and Tricks - Advanced

Customize Find Results

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Find

String:Find result format

Sample:$f$e($l,$c):$t\r\n

Files$p      path                        $f      filename                $v      drive/unc share             $d      dir                         $n      name                        $e      .ext                   

Location $l      line                         $c      col                         $x      end col if on first line, else end of first line $L      span end line $C      span end col

Text $0      matched text                 $t      text of first line $s      summary of hit $T      text of spanned lines

Char \n      newline                    \s      space                      \t      tab                         \\      slash                     \$      $                 

Page 9: Visual Studio Tips and Tricks - Advanced

Select to Last Go Back Marker

CTRL + =

Selects from current location to last marker

Go Back Markershttp://blogs.msdn.com/b/zainnab/archive/2010/03/01/navigate-backward-and-navigate-forward-vstipedit0024.aspx

Page 10: Visual Studio Tips and Tricks - Advanced

Import / Export DataTips

Pinned Data Tips can be imported and exported

Debug -> Import / Export Data Tips

Page 11: Visual Studio Tips and Tricks - Advanced

Generate from UsageUsed to automatically create stub code

Enables you to use classes and members before you define them

Page 12: Visual Studio Tips and Tricks - Advanced

Call Stack Breakpoints

Breakpoints (and tracepoints) can be set in the Call Stack

Great way to work with deep stacks

Page 13: Visual Studio Tips and Tricks - Advanced

DebuggingStart With vs. Start Without

Start Without Debugging just means it doesn’t attach the debugger

Start Without Debugging is NOT a Release build

Page 14: Visual Studio Tips and Tricks - Advanced