Update: You can watch the video of my TechDays Belgium presentation at http://www.microsoft.com/belux/techdays/2010/videos.aspx . Just search for "Sara Ford" as the speaker.
Update: I’ve updated the Visual Studio Tips Advance section for today’s talk. Cheers!
I’m speaking this week in the Hague, in The Netherlands at DevDays 2010. I’m giving several talks on Visual Studio this week, before we (speakers) head over to TechDays in Belgium for even more Visual Studio talks.
I always post all my content online before I give talks, so that those who attend my sessions do not have to rush trying to write down keyboard shortcuts or names of commands. They can simply sit back and watch.
This blog post will be updated over the next several days, as I continue to give talks. Consider this my personal wiki for the week =D
And make sure to follow Zain’s Visual Studio 2010 Tip of the Day series!
Visual Studio 2010 Tips – Part 1
Tip #0 Know your environment settings! For all my talks, I use the General Development Settings. (Tools – Options – Environment – Import / Export Settings)
Find In Files – Look in – Choose Search Folders
HKCU\Software\Microsoft\VisualStudio\10.0\Find String Find=$f$e($l,$c):$t\r\n
Tools – Options – Text Editor – All Languages – General, Uncheck Apply cut or copy to blank lines
Command: Edit.LineUpColumnExtend, Edit.LineDownColumnExtend, Edit.CharRightColumnExtend, Edit.CharLeftColumnExtend
Tip #9 How to use multi-line edit
Shortcut: Shift+Alt+Arrow (with nothing selected)
Shortcut: Ctrl+Alt+x for Toolbox, enter to insert text into Editor
Type in snippet shortcut, then press Tab Tab
Tools – Options – Projects and Solutions – General, uncheck Save new projects when created
Tip #15 Change text editor font size via keyboard (Accessibility macros) or use the new Zoom control
Ctrl+/ (or whatever Tools.GoToCommandLine is bound to)
alias fo file.openfile
Tip #17 Guidelines in the editor registry key hack – You’ll need an extension to do this for VS 2010. More after my Visual Studio 2010 Tips Advanced session
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Text Editor String RBG(128,0,0) 5, 20
Tools – customize – commands – macros – drag and drop macro to toolbar
Tools – Options – Environment – Startup, At Startup
Tip #20 File tab channel registry hack – No longer needed for VS 2010!!! Tools – Options – Environment – Document, insert files from right
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0 key, you can create a DWORD UseMRUDocOrdering = 1
tools – options – environment – documents, show miscellaneous files in Solution Explorer
Unload project, edit project, reload project
Right-click in indicator margin, select breakpoints, select Insert Tracepoint
Tip #24 How to get the find source dialog back – Much better experience in VS 2010!!! In the “No source code” window, there’s now a “browse for source” link
Solution Properties, under Common Properties – Debug Source Files, Delete Do no look for these source files edit box contents
Tools – Options – Debugging – General, uncheck Enable the Exception Assistant
Tip #26 XML Visualizers
Visual Studio 2010 Tips – Part 2 (Advanced)
This is still a deep dive into the IDE, and not about coding or actually writing extensions.
For this talk, I’m going to cover a few must-have extensions for Visual Studio 2008, and then go straight into new features and extensions.
Here’s the list of what I’m going to cover:
Must have Visual Studio 2008 Tips
Tip #4 – How to open a file without any UI
New Visual Studio 2010 features
Make sure to follow the new Visual Studio 2010 tip of the day with Zain!
Tip #5 – How to use Multi-line edit
Tip #7 – Automatic Highlighting of Symbols
Tip #10 – They Fixed the VB Smart tag bug
Press Ctrl+<period> to invoke smart tag, but now in VB, the first option in list is automatically selected, so you can simply hit <Enter> without having to first press the down arrow.
Tip #12 – Improved Outlining Collapsing / Expanding
In VS2010, you can select anywhere within the code block to collapse the region. You no longer have to click just the ‘-‘ box in the outlining margin to collapse the region.
Tip #13 – Navigate To
Tip #14 – Call Hierarchy
Tip #15 – Mutli-monitor Support
You can now drag out file tabs from the file tab channel and treat them like tool windows. Also, both these file tabs and tool windows will listen to WindowsKey + Arrow to snap to the monitor’s edge. use ctrl+DoubleClick to put either file or tool window back within Visual Studio in the “tabbed document” state.
Tip #16 – Zoom / Ctrl+Mouse Wheel
Tip #17 – The New and Improved Datatips
Tip #18 – Labeling and Sharing Breakpoints
Tip #19 – Getting Started with IntelliTrace
Tip #20 – WPF visualizer
Visual Studio Extensions
Tip #21 – How to Install Extensions
Tip #22 – Walkthrough of a few extensions
- Visual Studio Color Theme
- Guidelines and Guidelines UI
- XAML IntelliSense
- Snippet Designer
- Image Insertion
Tip #23 – Getting started writing your own extensions
- Lighting up the Visual Studio Editor with Rich Extensions (Channel 9 video)
- VSX101 – An Introduction to VS Extensions (Channel 9 video)
- More Channel 9 videos on Extensions
- Experimental Instance
Tip #24 – How to search project templates
Tip #25 – Add Reference Dialog Improvements