19
DEV330 Visual Studio .NET IDE Tips and Tricks Billy Hollis Author / consultant

DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

Embed Size (px)

Citation preview

Page 1: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

DEV330

Visual Studio .NET IDE Tips and Tricks

Billy HollisAuthor / consultant

Page 2: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

Agenda

A tour of the Visual Studio IDECustomizing window layoutsThe code editorUseful OptionsThe Server ExplorerUsing and extending HelpMacrosMiscellaneous tips and tricksIntroducing VS.NET Power Toys

Page 3: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

A tour of the IDE

Two types of windows - editor/designer and tool windowsComponent TrayToolbox/Server ExplorerSolution Explorer / Help WindowsProperty Window / Dynamic HelpTask List / Debug / Output WindowsClass View, XML / HTML editors

Page 4: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

Customizing Window Layouts

Rearrangement Docking / undockingAutohideNotice difference in dragging tab vs. dragging title barRight click to make floating only – e.g. Search/Replace window

Navigate with Ctrl-TabRestore window layout in options

Page 5: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

The Code Editor

OutliningOutlining menuCtrl key shortcuts (Ctrl-M, Ctrl-O, Ctrl-L)

RegionsNumbering lines (built-in macro)Word wrap (Ctrl-R toggles it)Clipboard ringGo back, go forwardAlt-drag for rectangular selectionIncremental Search (Ctrl-Alt-i)

Page 6: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

Useful Options

Startup behaviour

Option Strict On for all new projects

Fonts / colors (I use Lucida Console for text editor)

Default location of solutions

Dynamic help

Items in MRU list

Page 7: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

Server Explorer

Performance Counter

Event Log

Start / Stop Windows Service

Database tables and fields

Show / edit stored procedures

Drag stored procedure to get command object

Page 8: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

Using and Extending Help

Favorites

Change font size for Help

Help in external Internet Explorer

TOC, Index, Search tools

Help Filters

Integrating your own help contentDownload VSHIK authoring kit from MSDN

New topics display just like original help, and appear in index topics and search lists

Page 9: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

Macros

Record macros, similar to Word

Macro IDE (Visual Basic code only)Step through macros while executing

Hook keystroke to macro

Sample macros included with VS.NET

Page 10: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

Miscellaneous Tips and Tricks

Drag code snippets to tool box

Right-click to reset property

Task list - right-click for description tooltip

Edit while debugging

Old style toolbox

Return to start page

When in customize mode, can resize text elements in the toolbars (works in Word, too)

Page 11: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

Command Line Switches

Devenv /?

Devenv /command

Devenv /safemode

Devenv /setup

Page 12: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

Introducing…Visual Studio Power Toys!

Cool utilities that extend the IDE

Developed by the Visual Studio team

Available on GotDotNethttp://www.gotdotnet.com/team/ide

Discussion forms

Signed binaries

Full source available

Give us your feedback!

Page 13: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

Visual Studio PowerToys 1

VSTweak

VSEdit

VSWindowLayouts

Page 14: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

Visual Studio PowerToys 2

VB CommenterAdd XML doc comments to VB Code

Can be used to generate Help files

Custom Help BuilderCreate Help content for VS

Create setup to deploy & install content

Page 15: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

Future Visual Studio PowerToys

VSMouseBindings

VSCMDShell

VSTransparency

Coming soon to the Visual Studio PowerToys site on GotDotNet!

Page 16: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

Ask The ExpertsGet Your Questions Answered

Billy will be in the Ask the Experts booth Wednesday afternoon from 14:00 to 16:00

Page 17: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

Community Resources

Community Resourceshttp://www.microsoft.com/communities/default.mspx

Most Valuable Professional (MVP)http://www.mvp.support.microsoft.com/

NewsgroupsConverse online with Microsoft Newsgroups, including Worldwidehttp://www.microsoft.com/communities/newsgroups/default.mspx

User GroupsMeet and learn with your peershttp://www.microsoft.com/communities/usergroups/default.mspx

Page 18: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

evaluationsevaluations

Page 19: DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant

© 2003 Microsoft Corporation. All rights reserved.© 2003 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.