Microsoft Visual Studio Tips and Tricks 7/18/2018 11:10 AM #TEDEV305 Microsoft Visual Studio Tips and Tricks Dustin Campbell (@DCampbell) Microsoft Corporation Scott Cate (@ScottCate) EventDay.com © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Agenda Get the most out of Visual Studio 2010 Why are you here? Better / Faster / Code Tricks / Fun Facts / Bets with Friends Why are you here? Everyone will learn something If one tip saves one minute per hour Do some fuzzy math and …. Every tip will save you 1 year of coding Retire Today! Twitter Discussion: #TEDEV305
IntelliSense Filtering (Substring and Camel Case) Suggestion mode (Ctrl + Alt + Space) Undeclared types after “new” (C# only) Twitter Discussion: #TEDEV305
Start Page Pin or remove items in “Recent Projects” Close start page after load Show/Hide Startup Page Pin to Windows Taskbar Show Jump List (Win + Alt + n) Start New Instance (Win + Shift + n) Toggle Instances (Win + n) Twitter Discussion: #TEDEV305
Code Editor Tricks Call Hierarchy (Ctrl + K, T – C# only) Find All References (Shift + F12) Metadata as Source (C# only) Code Definition Window (C# only) Highlight References (Ctrl + Shift + Up/Down) Multi-line Editing (Alt + Shift + Up/Down -or- Alt + Mouse Up/Down) Editor Zoom (Ctrl + Shift + </> -or- Ctrl + Mouse Scroll) Twitter Discussion: #TEDEV305
Multiple Monitor Support Move/Dock floating windows (Win + <arrow key>) Float/Doc tab (Ctrl + Double Click) Twitter Discussion: #TEDEV305
Outlining Ad-Hoc outlining regions Collapse to definitions Hide selection (Ctrl + M, H) Stop hiding selection (Ctrl + M, U) Collapse to definitions Outlining preview on margin hover Double click margin to Expand/Collapse Format Document (Ctrl + K, D) Now works in CSS Twitter Discussion: #TEDEV305
Navigation Go to Definition (F12) Go to Definition Stack (Ctrl + Shift + 7/8 – C# only) Iterate List Window (e.g. Find Results) (F8) Navigate To (Ctrl + ,) Activate Open File (Ctrl + Alt + Down) Next | Previous Method (Ctrl + Up/Down – VB only) Twitter Discussion: #TEDEV305
Temporary Projects Quick Code Samples Throw Away Code Keep Hard Drive clean Save if you want No Solution Support Single Projects Only Twitter Discussion: #TEDEV305
New Project Dialog Sort Templates Search / Filter Templates (Ctrl + E) Add / Find New Templates Online Templates Twitter Discussion: #TEDEV305
Writing Code Faster Background Squiggles Smart Tags (Ctrl + .) Organize Usings Add Using/Import Generate from Usage Error Correction (VB Only) Twitter Discussion: #TEDEV305
Code Snippets IntelliSense Expansion (Double <tab>) Insert Snippet (Ctrl + K, X and ?<tab> in VB) Show/Hide Snippet Highlights (VB only) Twitter Discussion: #TEDEV305
Debugging IntelliTrace™ – Back in Time Breakpoint Name / Group [On|Off] / Export / Import Trace Points Pin and Persist DataTips Adjust DataTip Transparency Run to Cursor (Ctrl + F10) Debugger Visualizers Step Into Specific (Shift + Alt + F11) Twitter Discussion: #TEDEV305
Architecture Diagrams New Modeling Project Diagrams *.dgml Sequence Diagrams Layer Diagrams Twitter Discussion: #TEDEV305
Extending Visual Studio 2010 Extension Manager Online Gallery Easy to Enable/Disable Safe Mode Devenv.exe /SafeMode Twitter Discussion: #TEDEV305
Popular Extensions CodeRush Xpress Professional Power Tools http://devexpress.com/coderushx Professional Power Tools Document Tab Enhancements Highlight Current Line Column Guides And many more… Power Commands Bag-O-Goodies Twitter Discussion: #TEDEV305
http://ScottCate.com/Tricks Video Blog Tech Ed North America 2010 7/18/2018 11:10 AM http://ScottCate.com/Tricks Video Blog 100’s of Visual Studio Tips and Tricks Community Project Twitter Discussion: #TEDEV305 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
DEV Track Resources http://www.microsoft.com/visualstudio http://www.microsoft.com/visualstudio/en-us/lightswitch http://www.microsoft.com/expression/ http://blogs.msdn.com/b/somasegar/ http://blogs.msdn.com/b/bharry/ http://www.microsoft.com/sqlserver/en/us/default.aspx http://www.facebook.com/visualstudio
Resources Learning http://northamerica.msteched.com Tech Ed North America 2010 7/18/2018 11:10 AM Resources Connect. Share. Discuss. http://northamerica.msteched.com Learning Sessions On-Demand & Community Microsoft Certification & Training Resources www.microsoft.com/teched www.microsoft.com/learning Resources for IT Professionals Resources for Developers http://microsoft.com/technet http://microsoft.com/msdn © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Complete an evaluation on CommNet and enter to win! Tech Ed North America 2010 7/18/2018 11:10 AM Complete an evaluation on CommNet and enter to win! © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Tech Ed North America 2010 7/18/2018 11:10 AM © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
7/18/2018 11:10 AM © 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.