Is there a limit on the size of code snippets in Visual Studio 2008?

I created a long piece of code using the Snippet editor. After saving, I can see and use it in Visual Studio, however, the code suddenly connects after about 120 lines, and at the end some distorted text appears. Is there a size limit for code snippets? If so, is it a visual studio or the Snippet Editor feature?

+4
source share
2 answers

Fragments can be at least quite large: there was an encoding error in the code fragment:

I used% Replace $ instead of $ Replace $. It seems that this sketchy engine crashed into this typo.

+1
source

It sounds to me that you have detected a buffer overflow error in Visual Studio. You went well with a typical use case for fragments, this will not be checked often. Send the error message to connect.microsoft.com. Remember to document the service pack and IDE you are using, as well as include the snippet. You did not do this in your question, but this is the only way that anyone can really diagnose this problem.

+3
source

Source: https://habr.com/ru/post/1304651/


All Articles