New book: Coding Faster: Getting More Productive with Microsoft Visual Studio
We’re pleased to announce the availability of Coding Faster: Getting More Productive with Microsoft Visual Studio by Zain Naboulsi and Sara Ford.
Expert advice to help you work smarter and increase your productivity with Visual Studio.
Take a detailed look into Visual Studio—and learn practical techniques to help you work more efficiently. This fully revised and expanded version of Visual Studio Tips: 251 Ways to Improve Your Productivity includes a comprehensive collection of tips and shortcuts for working with the code editor, visual designers, searches, debugger, and other features in Visual Studio 2005, 2008, and 2010. You'll gain valuable insights for using this IDE—no matter what your experience level.
Discover how to:
- Change development settings and keyboard mappings to optimize your efficiency
- Save time initiating a new project by creating custom templates
- Uncover secrets for working with the toolbox, commands, and window layouts
- Work with files in more practical ways, such as using the File Tab Channel
- Use the Editor more effectively with tips on selecting and manipulating code
- Apply techniques to help reduce the time you spend debugging code
- Create Visual Studio extensions to increase your development productivity
Table of Contents
Productivity Techniques
Chapter 1 Getting Started
- 01.01 Running Multiple Versions of Visual Studio Side-By-Side
- 01.02 Getting Table of Contents in Visual Studio 2010 Online Help
- 01.03 Exporting Your Environment Settings
- 01.04 Remove Projects from the Recent Projects List
- 01.05 AutoRecover
- 01.06 Improving Performance by Changing the Visual Experience in Visual Studio 2010
- 01.07 Change Tool Window Animations
- 01.08 Importing or Changing Your Environment Settings
- 01.09 Change Your Visual Studio Color Scheme
- 01.10 Reset All Your Development Settings
- 01.11 Customize Your Toolbars in Visual Studio 2010: Toolbars Tab
- 01.12 Customize Your Toolbars in Visual Studio 2010: Commands Tab
- 01.13 Visual Studio Logging
- 01.14 Visual Studio Safe Mode
- 01.15 The ResetSettings Switch
Chapter 2 Projects and Items
- 02.01 Search for Project Templates in the New Project Dialog Box
- 02.02 Recent Project Templates in the New Project Dialog Box
- 02.03 Using Older Frameworks with Multi-Targeting
- 02.04 Create Web Application or Virtual Directory in IIS
- 02.05 Multiple Startup Projects
- 02.06 Change the Default New Project Location
- 02.07 Track Active Item in Solution Explorer
- 02.08 Type-Ahead Selection Support in Solution Explorer
- 02.09 Using Solution Folders
- 02.10 Navigating Property Tabs in the Project Properties
- 02.11 Pin a Project to the Recent Projects List
- 02.12 Creating Temporary Projects
- 02.13 Create Your Own Item Template
- 02.14 Roll Your Own Project Template with the Export Template Wizard
- 02.15 Organizing Your Custom Item Templates
- 02.16 Organizing Your Custom Project Templates
- 02.17 Reorganize the Default Item Templates
- 02.18 Reorganize the Default Project Templates
- 02.19 Change the Templates that Appear in the New Project or Item Dialog Boxes
Chapter 3 Getting to Know the Environment
- 03.01 Rearrange Windows in Visual Studio 2010 Using the Guide Diamond
- 03.02 Dock a Floating Tool Window Back to Its Previous Location
- 03.03 Cycle Through Your Open Tool Windows
- 03.04 Closing Tool Windows
- 03.05 Expand and Collapse All in the Toolbox
- 03.06 Searching in the Toolbox
- 03.07 Navigate Among Tabs in the Toolbox
- 03.08 Window Layouts: The Four Modes
- 03.09 Window Layouts: Design, Debug, and Full Screen
- 03.10 Working with Tabs in the Toolbox
- 03.11 Using Additional Browsers for Web Development
- 03.12 Auto-Hide All Tool Windows
- 03.13 Showing Hidden Tool Windows with the Auto Hide Channel
- 03.14 Moving Tool Windows Around with Your Keyboard
- 03.15 Keyboard Access to a Tool Window’s Toolbar
- 03.16 Command Prompt History
- 03.17 Command Prompt Tab Completion
- 03.18 Undock and Dock a Single Tool Window in a Group
- 03.19 Understanding Commands: Simple Commands
- 03.20 Understanding Commands: Aliases
- 03.21 Understanding Commands: Arguments and Switches
- 03.22 Testing a Command
- 03.23 Understanding Commands: Running Commands
- 03.24 Find Keyboard Shortcuts
- 03.25 Keyboard Shortcuts: Additional Mapping Schemes
- 03.26 Keyboard Shortcuts: Creating New Shortcuts
- 03.27 Keyboard Shortcuts: Reset All Your Shortcuts
- 03.28 Understanding Commands: Logging Commands
- 03.29 Export Your Window Layouts
- 03.30 Stop the Toolbox from Auto-Populating from the Solution
- 03.31 Using External Tools
- 03.32 Create Keyboard Accelerators for External Tools
- 03.33 Exporting Your Command Window Aliases and External Tools List
- 03.34 Creating and Using a Macro
- 03.35 Visual Studio Image Library
Chapter 4 Working with Documents
- 04.01 Insert Documents to the Right of Existing Tabs
- 04.02 Recent Files
- 04.03 Working with Documents on Multiple Monitors
- 04.04 Navigate Open Document Windows
- 04.05 Close the Current Document Window
- 04.06 Open a File Location from the File Tab
- 04.07 Open the File Menu Drop-Down List from Your Keyboard
- 04.08 Using the IDE Navigator
- 04.09 Multiple Views of the Same Document
- 04.10 Closing Just the Selected Files You Want
- 04.11 Understanding the File Open Location
- 04.12 Show Previous Versions
- 04.13 Using Custom File Extension Associations
Chapter 5 Finding Things
- 05.01 Repeat Your Last Search
- 05.02 Using Quick Find
- 05.03 Using a Simple Quick Replace
- 05.04 Hide the Quick Find and Quick Replace Tool Window After the First Match
- 05.05 Undo Quick Replace and Replace in Files
- 05.06 Using the Find Combo Box Keyboard Shortcuts
- 05.07 Using Incremental Search
- 05.08 Search the Currently Selected String Without the Find Window
- 05.09 Find In Files: Find Options
- 05.10 Find In Files: Result Options
- 05.11 Replace In Files: Basic Options
- 05.12 Go To Definition for Cascading Style Sheets
- 05.13 How to Use Navigate To
- 05.14 Understanding Find Symbol
- 05.15 Find Symbol Results Shortcuts
- 05.16 Replace in Files: Tagged Expressions
- 05.17 Customize Results in Find In Files Searches
Chapter 6 Writing Code
- 06.01 Zoom In or Out of Text in the Editor Using the Mouse Wheel
- 06.02 Zoom In or Out of Text in the Editor
- 06.03 How to Keep from Accidentally Copying a Blank Line
- 06.04 Make IntelliSense Transparent
- 06.05 Cut or Delete the Current Line
- 06.06 Using the New IntelliSense: Keywords
- 06.07 Using the New IntelliSense: Pascal Case
- 06.08 Comment and Uncomment in Web Pages
- 06.09 Insert a Blank Line Above or Below the Current Line
- 06.10 Transpose Lines, Words, and Characters
- 06.11 How to Cycle Through the Clipboard Ring
- 06.12 Using the Undo and Redo Stack
- 06.13 Undo and Redo Global Actions
- 06.14 How to Use Reference Highlighting
- 06.15 Moving or Selecting Between Matching Braces (C++, C# Only)
- 06.16 Invoke Statement Completion
- 06.17 Move Between the Common Tab and All Tab in Statement Completion (VB)
- 06.18 Using Parameter Information
- 06.19 Using Quick Info
- 06.20 Word Completion
- 06.21 Drag and Drop Code into the Toolbox
- 06.22 Using Smart Tags from the Keyboard
- 06.23 Organize Using Statements (C# Only)
- 06.24 Switch Between Design and Source in Web Projects
- 06.25 Toggle Designer
- 06.26 Change the Default View in the HTML Editor
- 06.27 Jump Back to the Editor from Just About Anywhere
- 06.28 Replacing Text with a Box Selection
- 06.29 Pasting the Contents of One Box Selection into Another
- 06.30 Pasting a Single Selection into a Box Selection
- 06.31 Using Zero-Length Box Selection
- 06.32 View White Space
- 06.33 Collapsing Your Code with Outlining
- 06.34 Using Hide Selection
- 06.35 Collapse to Definitions with Outlining
- 06.36 Cut, Copy, and Paste Collapsed Code with Outlining
- 06.37 Understanding Word Wrap
- 06.38 Properties Window Keyboard Shortcuts
- 06.39 Document Outline: Web Projects
- 06.40 Inserting Code Snippets
- 06.41 Surround with a Code Snippet
- 06.42 Using Code Snippets
- 06.43 HTML Code Snippets
- 06.44 JavaScript Code Snippets
- 06.45 Using the Code Snippets Manager
- 06.46 Insert Quotes When Typing Attribute Values
- 06.47 Format the Current Document or Selection (Web)
- 06.48 Using the Navigation Bar
- 06.49 HTML Editor Tag Navigation
- 06.50 Format HTML on Paste
- 06.51 Display HTML/CSS Warnings as Errors
- 06.52 Updating JScript IntelliSense
- 06.53 Using JScript Libraries in Other JScript Files
- 06.54 Create New Code Snippets from Existing Ones
- 06.55 Understanding the Navigation Stack
- 06.56 Navigate Backward and Navigate Forward Using Go Back Markers
- 06.57 Select from the Current Cursor Location to the Last Go Back Marker
- 06.58 Track Changes in the Editor
- 06.59 Edit Read-Only Files
- 06.60 Choosing CSS Versions
- 06.61 Understanding Tag Specific Options
Chapter 7 Debugging
- 07.01 Setting a Breakpoint with Code
- 07.02 Using Ctrl+Alt+B to Open the Breakpoints Window
- 07.03 Adding Labels to Breakpoints
- 07.04 Enable or Disable All Breakpoints
- 07.05 TODO Comments in the Task List
- 07.06 Create Custom Tokens for the Task List
- 07.07 Create Code Shortcuts in the Task List
- 07.08 Code Definition Window
- 07.09 Save Changes Before Building
- 07.10 Navigate Errors in the Error List
- 07.11 Ordering and Multicolumn Sorting in Tool Windows
- 07.12 Pin a DataTip to Source Code
- 07.13 Create a Floating DataTip
- 07.14 Adding Comments to a DataTip
- 07.15 Use a DataTip to Edit a Value
- 07.16 DataTip Value from the Last Debug Session
- 07.17 Import and Export DataTips
- 07.18 Using the Call Hierarchy
- 07.19 Searching Breakpoints
- 07.20 Breakpoint Hit Count
- 07.21 Set a Breakpoint on a Function
- 07.22 Set a Simple Breakpoint Condition
- 07.23 Set a Complex Breakpoint Condition
- 07.24 Setting a Breakpoint Filter
- 07.25 Setting a Tracepoint in Source Code
- 07.26 Import and Export Breakpoints
- 07.27 Run to Cursor
- 07.28 Using the Exception Assistant
- 07.29 Use a Specific Port for the Development Server (Web Applications)
- 07.30 Application and Page Level Tracing
- 07.31 The Watch Window: Watching and Changing Values
- 07.32 Understanding QuickWatch
- 07.33 The Watch Window: Visualizers
- 07.34 The Watch Window: Refreshing Data
- 07.35 The Watch Window: Adding Watches from Variable Windows
- 07.36 Create Folders in Class View
- 07.37 Search in Class View
- 07.38 Synchronize Your Class View
- 07.39 The Misnamed and Misunderstood Object Browser
- 07.40 The Object Browser: Setting the Browsing Scope
- 07.41 The Object Browser: Navigation and References
- 07.42 The Exceptions Dialog Box
- 07.43 Setting a Breakpoint in the Call Stack Window
- 07.44 Setting a Tracepoint in the Call Stack Window
- 07.45 Using the WPF Tree Visualizer
- 07.46 Understanding Break All Processes When One Process Breaks
- 07.47 Changing Context in the Locals Window
- 07.48 Understanding the Autos Window
Extensions for Visual Studio
Chapter 8 Visual Studio Extensions
- Introducing Visual Studio Extensions
- 08.01 Create Themes Using All Visual Studio Elements
- 08.02 Insert Images into Your Code
- 08.03 Add Visual Guidelines to Your Code
- 08.04 Get More IntelliSense in Your XAML Editor
- 08.05 Sync the Solution Explorer to the Current File
- 08.06 Add PowerCommands Options to the IDE
- 08.07 Use Emacs Commands in the Editor
- 08.08 Submit to “The Daily WTF”
- 08.09 Diff Files Using the Editor
- 08.10 Run Windows PowerShell Within the IDE
- 08.11 Visualize OData in a Graphical View
- 08.12 Run VIM Commands in the Editor
- 08.13 Check Spelling in Your Code
- 08.14 Zoom Across All Files
- 08.15 View Code Blocks Using Vertical Lines
- 08.16 Get a Bird’s-Eye View of Your Code in an Editor Margin
- 08.17 Build Projects from the Windows 7 Taskbar
- 08.18 Triple-Click to Select an Entire Line
- 08.19 Create Regular Expressions Within Your Code
- 08.20 Get More Productivity Tools in the IDE
- 08.21 Create and Find Code Snippets
- 08.22 Document Your Code with Three Keystrokes
- 08.23 Customize Visual Studio Using Windows PowerShell