3

I've added a number of snippets in Visual Studio C# Express.

Many are in the list double and I want to delete them.

When the cursor is on the FOLDER called "MySnippets" the delete button is active.

But when the cursor is on an individual snippet, the delete button is grayed out.

I assume this is a bug, so are snippets saved in an XML file somewhere so that I can just edit them manually?

1
  • in VS 2012 Express, the manager is built in so you can add, delete, import etc from VS itself Commented Dec 16, 2012 at 21:34

2 Answers 2

3

There should be a Visual Studio folder in your documents folder, Snippets are below that.

Sign up to request clarification or add additional context in comments.

1 Comment

I deleted the "My Snippets" folder and although it exists in that folder it's not showing up, looking for some meta file somewhere, e.g. C:\Program Files\Microsoft Visual Studio 9.0\VC#\Snippets\1033\SnippetsIndex.xml but that doesn't reflect what is in menu under CTRL-K, B.
2

here is the easiest way I found to manage snippets:

  1. put all your snippet files in one directory somewhere.
  2. press CTRL-K, B, and then the "Add.." button to add that directory.
  3. then any changes you make to your snippets will be instantly reflected.
  4. don't use the "Import..." button.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.