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.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -