Is there a way or a VS add-on to format Javascript in the text editor? Like properly indent each line, align the braces, ... etc?
+3
A:
It's simple just use Ctrl + K + D for Javascript formatting and use Ctrl + A + K + F for formatting your c#, vb code
Enjoy coding with shortcut's :-)
Ravia
2010-01-05 17:40:59
CRTL-K-D will also do style sheets.
Chris
2010-01-06 19:01:44
Format selection from the context menu also works. I thought it did html tags only but one has to select the js separately.
Tony_Henrich
2010-01-06 21:32:34
A:
Inside VS , you have Edit-Advanced-Format Document, also goto options select editors and then Javascript/HTML and select/deselect desired options
Amit Ranjan
2010-01-06 18:54:31