Welcome to MSDN Blogs Sign in | Join | Help

Dave Glover "Down Under (Oz)"

Webdev, Visual Studio, Mobility, Windows, Security, Media Center and Gadgets:-)

Syndication

News

Follow me on Twitter


These postings are provided "AS IS" with no warranties, and no conferred rights.

Tips and Tricks for getting the most out of Visual Studio 2005 from my VDNUG and ADNUG sessions

Well I must admit that I learnt a lot getting this session together and as promised here is a summary of stuff that'll save you time and money!!

Oh and my admission, I borrowed, ok I stole a lot of the ideas from Anson Horton's "PDC Tips and Tricks" session and his blog, thanks Anson, yup he does know!! :-)

Check out his blog and the link to the video stream of his PDC session

Oh and Check out Bill McCathy's snippet edit here!!

So as requested these are some of the tips and tricks

Stepping through the "Go To Definition" History Stack

This is not very discoverable and it's definitely my favourite!!

Backward: Ctrl Shift *
Forwards: Ctrl Shift &

Navigating through the Edit History Stack

Backwards: Ctrl -
Forwards: Ctrl Shift -

Navigating Windows

Class Pane: Ctrl W C (W=Window, C = Class)
Property Pane: Ctrl W P (W=Window, P=Property)
Solution Pane: Ctrl W S (W=Window, S=Solution)

Outlining

Collapse All: Ctrl M O
Expand All: Ctrl M P
Toggle region: Ctrl M M

Refactoring

Shortcut key: Ctrl . (This works when you make a change to a declaration, a little red squiggle appears under the change, you can activate the refactoring it with the mouse or Ctrl . which is much faster!!)
 

Code Snippets

Activate a snippet by typing it's name followed by the Tab key. 

By default the C# snippets are installed in the the C:\Program Files\Microsoft Visual Studio 8\VC#\Snippets\1033\Visual C# directory, the VB snippets are C:\Program Files\Microsoft Visual Studio 8\VB\Snippets\1033. 

Check them out, they are a pretty simple XML docs!!

If you make changes then the ideal place to save them is your My Documents\Visual Studio 2005\Code Snippets directory under the appropriate language section.

Debugging Attributes

Two really useful attributes that you can use to control the output of the debug variable watch window, cut down on clutter and see what you are really interested in.

You need to include the "System.Diagnostics" namespace and the two attributes are [DebuggerBrowsable(..)] and [DebuggerDisplay(..)]

see Anson's blog at http://blogs.msdn.com/ansonh/archive/2005/12/06/500823.aspx and

Tip#23: Stepping behavior customization

and

Tip#24: Value column customization

Cheers and enjoy, Dave

Published Tuesday, July 04, 2006 10:13 PM by dglover

Filed under:

Comments

# re: Tips and Tricks for getting the most out of Visual Studio 2005 from my VDNUG and ADNUG sessions @ Tuesday, July 04, 2006 10:18 AM

Ctrl Shift * doesn't work for me. Is there a specific keyboard scheme I need to have enabled? Maybe not VB

Mike

# Technical Related Notes » Blog Archive » links for 2006-07-05 @ Wednesday, July 05, 2006 12:05 AM

PingBack from http://technote.thedeveloperside.com/?p=35

Technical Related Notes » Blog Archive » links for 2006-07-05

# re: Tips and Tricks for getting the most out of Visual Studio 2005 from my VDNUG and ADNUG sessions @ Wednesday, July 05, 2006 7:11 PM

Don't forget the Ctrl+K then Ctrl+D to reformat the code (alignment, tabs and spaces etc...)

Paul Turner

# re: Tips and Tricks for getting the most out of Visual Studio 2005 from my VDNUG and ADNUG sessions @ Sunday, July 09, 2006 9:39 PM

Hi there Mike, I'll check what the key code for VB is!!  Cheers, Dave

dglover

# re: Tips and Tricks for getting the most out of Visual Studio 2005 from my VDNUG and ADNUG sessions @ Monday, July 10, 2006 6:37 PM

You forgot the most important tip.

http://www.jetbrains.com/resharper/

Makes VS almost usable.

DanH

# re: Tips and Tricks for getting the most out of Visual Studio 2005 from my VDNUG and ADNUG sessions @ Tuesday, July 11, 2006 8:07 PM

Top stuff Dave!

lb

# Visual Studio Tools… « ???????? ???????????? ?????????????? @ Saturday, October 13, 2007 1:39 PM

PingBack from http://seregaborzov.wordpress.com/2007/10/13/vs-tools/

Visual Studio Tools… « ???????? ???????????? ??????????????

# oz tips @ Wednesday, April 16, 2008 3:34 PM

PingBack from http://joana.freetvnewsworld.com/oztips.html

oz tips

# Dave Glover Down Under Oz Tips and Tricks for getting the most | debt solutions @ Monday, June 15, 2009 8:30 PM

PingBack from http://debtsolutionsnow.info/story.php?id=12142

Dave Glover Down Under Oz Tips and Tricks for getting the most | debt solutions

New Comments to this post are disabled
Page view tracker