So I have written a t4 template which generates a ton of code and works well. The only issue is that most of the code never needs to be seen by developers so I have hidden in regions all of the boiler plate code . Is there any way (i’m assuming no) to give VS a hint in a c++ code file to go ahead and collapse the regions.
Share
You could generate the code into a separate file and then
#includeit where necessary. That way you won’t have developers working directly on top of the generated code: they don’t see it, and it makes possible future regenerations of that code very easy.