Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Coding Aids
 How to: Delete a Snippet Added to Y...
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio
How to: Delete a Snippet Added to Your Code

Updated: November 2007

Adding an IntelliSense Code Snippet to your code is considered a single edit by the Code Editor.

To delete a snippet immediately after insertion

  • Type CTRL+Z or choose Undo from the Edit menu.

    You can "undo" an insertion in this way because the entire snippet is recognized as one unit by the Code Editor until the file has been closed.

To delete a snippet after it has been modified

  1. Select the lines of code in the snippet that you want to delete.

  2. Delete the lines using Cut from the Edit menu, CTRL+X, or DEL.

    If you delete a snippet after it has been modified, any imports or references added in association with the snippet will remain in your project.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker