Reputation: 1865
Is there an automatic way to output full indent code using a MVC solution?
When my HTML is output the code inside partialviews and childviews is not indented because it's not declared so (imagine how many tabs i have to indent to become indent, and that is illegible inside VStudio).
Upvotes: 0
Views: 432
Reputation: 25210
You shouldn't format your code so that View | Source is indented.
Rather, if you need to explore the structure of your HTML syntax as output to the browser, use something like FireBug or the Chrome developer tools that automatically indent and structure the browser's HTML in a usable way.
Like so:
Upvotes: 2