views:

86

answers:

2

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
CRTL-K-D will also do style sheets.
Chris
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
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