Code formatting doesn't seem work in Visual Studio Code. I have tried with shift+alt+f
, but it wouldn't format html code. I run ctrl+shift+p
and type Format and only option I have is Format Document(shift+alt+f
) and Format Selection (don't have Format code). I don't understand what I' doing wrong? Do I need to install some kind of extension in order for this formatting to work on html files?
This worked for me:
This worked for me in Visual Studio 2015 (VS2015):
That worked for me when Format Document (Ctrl-K, Ctrl-D) and Format Selection (Ctrk-K, Ctrl-F) failed to format HTML that I pasted into a Visual Studio HTML document.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With