Click to Rate and Give Feedback

  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:

Want more? Here are some additional resources on this topic:

Visual Studio 
How to: Manage Code Snippets 

The Code Snippets Manager allows you to set the directories and individual snippets that you want available to insert into your code.

For information on searching online for code snippets, see How to: Search for Code Snippets Online.

To access the Code Snippets Manager

  • On the Tools menu, click Code Snippets Manager.

To add a directory to the Code Snippet Manager

  1. In the Language list, select the language that you want to add a directory to.

  2. Click Add. This opens the Code Snippets Directory window.

  3. Select the directory that you want to add to the Code Snippets Manager and click OK.The directory will now be used to search for available code snippets.

To remove a directory from the Code Snippet Manager

  1. Select the directory that you want to remove.

  2. Click Remove.

To import a code snippet into the Code Snippet Manager

  1. In the Language list, select the language that you want to add the code snippet.

  2. Select the existing folder that you want to place the imported code snippet into.

  3. Click Import. This opens the Code Snippets Directory window.

  4. Select the code snippet file that you want to add to the Code Snippets Manager and click OK.The code snippet is now available for insertion into the code editor.

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
If the Code Snippets Manager menu item is missing...      mgrasso   |   Edit   |   Show History
If the Code Snippets Manager is not on the Tools menu,

1. Right click the toolbar and select Customize
2. Select the Tools category on the left.
3. Scroll down to the Code Snippets Manager icon on the right
4. Drag the Code Snippets Manager icon to the Tools menu and drop it wherever you like.
Tags What's this?: Add a tag
Flag as ContentBug
Feature not i Visual C++      luuf   |   Edit   |   Show History

Even though you will find the menu in a C++ environment, it cannot be used as in the other languages.

Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker