StrataFrame Forum

VS tips and tricks

http://forum.strataframe.net/Topic26636.aspx

By Charles R Hankey - 3/26/2010

Okay, I'm sure everyone else knows this, but try hitting Ctrl-TAB in the VS IDE. (just hold control and tap TAB repeatedly to move through the list, then just let go)



I also tend to forget Ctrl M O to collapse all outlining to definitions and Ctrl L to expand all (as well as Ctrl M M to toggle in current block )



This is useful if you don't already know of it :



http://blogs.msdn.com/zainnab/archive/tags/vs2010/Tips+and+Tricks/Visual+Studio+Tips+and+Tricks/default.aspx


By Charles R Hankey - 3/26/2010

Ah yes, and remember on the Windows menu you can Split the current doc window and also add a new tab group for documents either horizontally or vertically ( and with a 24" monitor that gives you a lot of flexibility )
By Greg McGuffey - 3/26/2010

The ones I use the most:



Ctl+K+D to format the doc. I didn't do this as much when using VB, but with C#...all the time.



Ctl+K+C to comment selected lines and Ctl+K+U to uncomment.



F7 to toggle between code and designer view.



F4 for properties.



Ctl+Shift+B to build all projects in solution



Cool poster of shortcuts:

http://www.microsoft.com/downloads/details.aspx?familyid=e5f902a8-5bb5-4cc6-907e-472809749973&displaylang=en
By Dustin Taylor - 3/26/2010

Great tips! Thanks for sharing, I wasn't aware of the CTRL+M+O/L shortcuts, those will come in handy Smile.
By Greg McGuffey - 4/21/2010

Someone asked the same question on SO today. Some great ones in here...



http://stackoverflow.com/questions/100420/hidden-features-of-visual-studio-2005-2008
By Charles R Hankey - 4/21/2010

Good stuff !



Another must have is the Source Outliner Powertoy.



http://sourcecodeoutliner.codeplex.com/





I also keep forgetting that with two monitors you can undock your properties sheet, solution explorer etc and drag them over to another monitor, leaving the 24" for side by side code/designer windows.



( also discovered recently that the infragistics folks get what I've always complained about in the Property Sheet. Their Custom Property Pages has Modified Only so you can look at just properties that are not set at default. Now if they would just let you set favorite properties for each control they'd be caught up with the VFPX Property Designer we've had in VFP for a couple years now BigGrin )
By Russell Scott Brown - 4/22/2010

Thanks Charles - the source control outliner is very nice to have.
By Charles R Hankey - 4/22/2010

There is a version for VS2010 as well, but at least in the RC it installs without error but then never shows up on the Other Windows menu like it does in 2008. Googled and others have the same experience but I haven't found and answer.


By Russell Scott Brown - 4/23/2010

Thanks.  I'm not using VS2010 yet anyway so it by the time I do I'm sure the problem will be resolved.