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.
To access the Code Snippets Manager
On the Tools menu, click Code Snippets Manager.
Warning
In Visual Studio Express editions the Code Snippets Manager is not shown by default. You can bring it up by pressing CTRL + K, CTRL + B.
To add a directory to the Code Snippet Manager
In the Language: drop-down list, select the language that you want to add a directory to.
Click Add. This opens the Code Snippets Directory window.
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
Select the directory that you want to remove.
Click Remove.
To import a code snippet into the Code Snippet Manager
In the Language: drop-down list, select the language that you want to add the code snippet.
Select the existing folder that you want to place the imported code snippet into.
Click Import. This opens the Code Snippets Directory window.
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
Tasks
How to: Modify Existing Snippets