开发者

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

开发者 https://www.devze.com 2023-04-09 04:00 出处:网络
I have about 10 code snippets I want to use in a de开发者_C百科mo 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 o

I have about 10 code snippets I want to use in a de开发者_C百科mo 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消