c# - How can I make code-generation respect my formatting settings? -
i've started using vs2012's mvc project template, , how can right-click , "add controller" or "add view" produce new classes. generated class code doesn't respect text formatting settings tools > options > text editor > c# > formatting
.
specifically, new line options braces unchecked, , yet generated class code puts open braces on new lines. every time first save new class, warns me mixed tabs , spaces (my settings keep tabs).
i suspect there t4 templates backing these classes, don't know find them or how edit them. ideas?
that's because code generated using t4 templates. have modify t4 templates fit need.
- here fantastic tutorial walking through it.
- and here another article on it.
- and yet one steven sanderson.
Comments
Post a Comment