Can I make Visual Studio place curly braces on the same line as an if statement (in HTML)?
问题 In Visual Studio while designing MVC views (in .aspx or .ascx files) I often use if statements. When I auto-format (Ctrl-K,D), VS wraps the braces in this really ugly and hard to read way: <% if (Model.UserIsAuthenticated) { %> (some HTML goes here...) <% } %> Is there any way to make Visual Studio auto-format like this instead: <% if (Model.UserIsAuthenticated) { %> (some HTML goes here...) <% } %> Or is there a better way to do this? I don't want to use Razor quite yet, but it looks like it