views:

50

answers:

2

I created a long code snippet with Snippet Editor. After saving I can see and use it within Visual Studio, however, the code is suddenly trunctated after about 120 lines and there appears some garbled text at the end. Is there a size limit to code snippets? If yes, is this a visual studio, or a Snippet Editor "feature"?

+3  A: 

Sounds to me you've found a buffer overflow bug in Visual Studio. You're well past the typical usage scenario for snippets, this wouldn't be tested often. Post your bug to connect.microsoft.com for feedback. Don't forget to document the service pack and IDE you use, as well as including the snippet. You didn't do that in your question but that's the only way anybody can truly diagnose this issue.

Hans Passant
Thanks, I posted the snippet on connect. I will update the question when I know more.
Dabblernl
+1  A: 
Dabblernl