Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual C#
Code Snippets
 How to: Restore C# Refactoring Snip...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual C# Language Concepts 
How to: Restore C# Refactoring Snippets 

C# refactoring operations rely on code snippets found in the following directory:

Installation directory\Microsoft Visual Studio 8\VC#\Snippets\language ID\Refactoring

If this Refactoring directory, or any files in this directory are deleted or corrupted, then C# refactoring operations may not work in the IDE. The following procedures can help you restore C# refactoring code snippets.

To verify C# refactoring snippets are available through the Code Snippet Manager

  1. In the Tools menu, select Code Snippet Manager.

  2. In the Code Snippet Manager dialog box, select Visual C# from the Language drop-down list.

    A Refactoring folder should appear in the tree view folder list.

To restore refactoring snippets in Code Snippet Manager

  1. In the Tools menu, select Code Snippet Manager.

  2. In the Code Snippet Manager dialog box, select Visual C# from the Language drop-down list.

  3. Click Add. The Code Snippets Directory dialog box, which helps you locate and specify the directory to add back into the Code Snippet Manager, appears.

  4. Locate the Refactoring folder whose directory path is:

    Installation directory\Microsoft Visual Studio 8\VC#\Snippets\language ID\Refactoring

  5. Click Open in the Code Snippets Directory dialog box, and then click OK in the Code Snippets Manager.

To repair Refactoring code snippets directory

  1. In the Code Snippet Manager dialog box, click Search Online.

  2. Enter refactoring, and then click Search.

    Search results should include a website that allows you to download the .vsi file that you can use to reinstall the Refactoring folder.

See Also

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