Visual Studio HTML editor

Does anyone know of a way to control Visual Studio's curly brace handling in HTML view?

a type...

<% if (true) { %>

      

Then

<% { %>

      

And visual studio will automatically format it as such.

<% if (true)
   { %>    
<% } %>

      

Not a big problem, but nested some of them use foreach and it gets messy.

+1


source to share


4 answers


Well, this really isn't a problem, but what I do is that I press Ctrl + x to undo and that will undo the formatting. I don't know any other way, another one that changed it in all C # docs.



+1


source


Take a look at tools -> options -> texteditor -> JScript -> Formatting!



0


source


Since the code is written in C #, it must be determined by the settings in tools | options | text editor | C # | formatting.

0


source


http://forums.asp.net/t/1478453.aspx

the jscript node also has a formatting section. that was my problem.

0


source







All Articles