royco
royco

Reputation: 5529

Can multiple VS 2010 code snippets be stored in the same file?

I have about 10 code snippets I want to use in a demo in Visual Studio 2010. Does each code snippet need to be stored in a separate snippetName.snippet file? Or, can I have all snippets in one file?

VS complains when I add a 2nd snippet to a file. Maybe I'm missing something though.

Upvotes: 3

Views: 444

Answers (1)

Joel McBeth
Joel McBeth

Reputation: 1318

According to this the <CodeSnippets> element may contain multiple <CodeSnippet> elements. I'm not sure how you are adding your second code snippet to the file, but my guess would be to add another <CodeSnippet> section for each additional code snippet you wish to include.

Upvotes: 4

Related Questions