Visual Studio Hacks [Electronic resources]

Andrew Lockhart

نسخه متنی -صفحه : 172/ 3
نمايش فراداده

Visual Studio Hacks

By Table of Contents | Index | Examples | Copyright

credits Credits

About the Author

Contributors

Acknowledgments

Preface

Preface

Why Visual Studio Hacks?

How to Use This Book

An Important Note About Keyboard Shortcuts

How This Book Is Organized

Conventions

Using Code Examples

Safari Enabled

How to Contact Us

Got a Hack?

Chapter 1. Master Projects and Solutions

Section 1.1. Hacks 1-5

Hack 1. Manage Projects and Solutions

Hack 2. Master Assembly and Project References

Hack 3. Organize Projects and Solutions

Hack 4. Hack the Project and Solution Files

Hack 5. Remove SourceSafe Bindings

Chapter 2. Master the Editor

Section 2.1. Hacks 6-15

Hack 6. Master the Clipboard

Hack 7. Make Pasting into Visual Studio Easier

Hack 8. Master IntelliSense

Hack 9. Master Regions

Hack 10. Add Guidelines to the Text Editor

Hack 11. Select the Best Editor

Hack 12. Customize Syntax Coloring

Hack 13. Edit the Most Recent File and Project Lists

Hack 14. Refactor Your Code

Hack 15. Use and Share Code Snippets

Chapter 3. Navigating Visual Studio

Section 3.1. Hacks 16-23

Hack 16. Take Control of Your Workspace

Hack 17. Find Files Quickly

Hack 18. Search Files Quickly

Hack 19. Search for Patterns in Your Files

Hack 20. Navigate Your Source Code

Hack 21. Never Forget a TODO Again

Hack 22. Hack the Mouse

Hack 23. Enhance the Tabs in Visual Studio

Chapter 4. Customizing Visual Studio

Section 4.1. Hacks 24-35

Hack 24. Create Your Own Shortcuts

Hack 25. Customize Menus and Toolbars

Hack 26. Create Custom Window Layouts

Hack 27. Customize the Toolbox

Hack 28. Package Your Toolbox Settings

Hack 29. Add Support for Nonstandard File Extensions

Hack 30. Hack the Registry

Hack 31. Save and Move Your IDE Settings

Hack 32. Enable IntelliSense for HTML and XML Documents

Hack 33. Add an External Tool

Hack 34. Customize Your Project Build Process

Hack 35. Modify the Build Output and Navigate the Results

Chapter 5. Debugging

Section 5.1. Hacks 36-43

Hack 36. Set Breakpoints

Hack 37. Troubleshoot Breakpoints

Hack 38. Customize Visual Studio''''s Reaction to Exceptions

Hack 39. Debug Scripting Code

Hack 40. Debug SQL Server

Hack 41. Debug a Running Process

Hack 42. Debug a Failing Application

Hack 43. Write a Custom Visualizer

Chapter 6. Speed Hacks

Section 6.1. Hacks 44-58

Hack 44. Speed Up Visual Studio

Hack 45. Load Files from the Command Prompt

Hack 46. Master the Command Window

Hack 47. Build a Custom Tool

Hack 48. Extend the Application Configuration File

Hack 49. Generate Strongly Typed DataSets

Hack 50. Define Templates for Generating Code

Hack 51. Create a Macro

Hack 52. Generate Code with Macros

Hack 53. Create Connection Strings Quickly

Hack 54. Quickly Sign Assemblies

Hack 55. Update Project References Quickly

Hack 56. Automatically Add using and Imports Statements

Hack 57. Insert Commonly Used Code Automatically

Hack 58. Move Quickly Between Source Control Providers

Chapter 7. Help and Research

Section 7.1. Hacks 59-67

Hack 59. Get Help

Hack 60. Search the Internet from Visual Studio

Hack 61. Redirect Help to Google

Hack 62. Use P/Invoke with Ease

Hack 63. Examine the IL Generated by Your Code

Hack 64. Examine the Innards of Assemblies

Hack 65. Follow the Rules with FxCop

Hack 66. Generate Statistics on Your C# Code

Hack 67. Profile Heap Allocations

Chapter 8. Comments and Documentation

Section 8.1. Hacks 68-72

Hack 68. Master C# XML Comments

Hack 69. Create Comments Faster

Hack 70. Create XML Comments with VB.NET

Hack 71. Create Documentation from XML Comments

Hack 72. Integrate Your Own Documentation into Visual Studio

Chapter 9. Server Explorer Hacks

Section 9.1. Hacks 73-76

Hack 73. Access Performance Counters

Hack 74. Diagram and Modify a Database

Hack 75. Script Your Database

Hack 76. Enumerate Processes, Drives, Shares, and More

Chapter 10. Work with Visual Studio Tools

Section 10.1. Hacks 77-82

Hack 77. Master the Visual Studio Command Prompt

Hack 78. Launch Visual Studio from the Command Prompt

Hack 79. Stress Test Web Applications

Hack 80. Obfuscate Your Code

Hack 81. Generate Code from UML

Hack 82. Generate UML Design Documents from Code

Chapter 11. Visual Studio Tools for Office

Section 11.1. Hacks 83-85

Hack 83. Install Visual Studio Tools for Office 2003

Hack 84. Create a Command Bar in Word 2003

Hack 85. Display a Windows Form from Excel 2003

Chapter 12. Extending Visual Studio

Section 12.1. Hacks 86-91

Hack 86. Automate Visual Studio

Hack 87. Access Visual Studio from Standalone Applications

Hack 88. Create a File Template

Hack 89. Writing a Visual Studio Add-in

Hack 90. Find the Name of That Command Bar

Hack 91. Change the Icon for Your Add-in

Chapter 13. Enhancing Visual Studio

Section 13.1. Hacks 92-100

Hack 92. Manage Add-ins

Hack 93. Run Unit Tests Inside Visual Studio

Hack 94. Spellcheck Your Code and Comments

Hack 95. View an Outline of Your Controls

Hack 96. Blog Code from Visual Studio

Hack 97. Collapse and Expand Your Code

Hack 98. Combine the Visual Studio Command Prompt and the Command Window

Hack 99. Generate Web Services Code

Hack 100. Test Regular Expressions in Visual Studio

Colophon

Index