views:

189

answers:

2

Having spent the last couple of months playing with Visual Studio 2010 and enjoying all its benefits; I only just noticed a great new feature that I haven’t seen published anywhere and would probably never know about unless I had just happened to stumble on it like I did.

So it has got me thinking, there are probably a ton of new "little tricks" that you can employ in VS2010 that people aren’t aware of. Hopefully we can get a good list...

I'll start....

We all know that Visual Studio 2010 supports javascript intellisense but did you know that you could reference a javascript in another javascript file using the following code, thus enabling intellisense in independent and linked JS files?

/// <reference path="PathToJavascriptToReference.js" />
+2  A: 

You can now save break points and pinned variables which you use for debugging to files which you can then attach to a bug report or send to a colleague to help him reproduce your results.

For more detailed info on data pin tips and the rest of the VS2010 debug features check out this link. :)

http://weblogs.asp.net/scottgu/archive/2010/04/21/vs-2010-debugger-improvements-breakpoints-datatips-import-export.aspx

How cool, I didnt know this. For anyone curious just right click on your breakpoint and click export... Excellent!
Maxim Gershkovich
+1  A: 

thumbnail previews in ctrl+tab

reg ADD HKCU\Software\Microsoft\VisualStudio\10.0\General /v ShowThumbnailsOnNavigation /t REG_DWORD /d 1

thumbnail previews

qntmfred
Nice, I like this a lot! You don't even have to crack open `regedit` to get this one, just run the one-liner.
Urda