Home > Enterprise >  How can format HTML with Visual Studio Code?
How can format HTML with Visual Studio Code?

Time:04-22

I found a file that I want to read with an unorder HTML code,

There is any visual studio code extension that can fix it to order code?

The code is something like and I want it to look prettier that each tag breaks the line.

div><div ><div ><div ><a href="#ava"><p>text</p></a></div><div ><a href="#jarvis"><p>home</p></a></div><div ><a href="#faq"><p>FAQ</p></a></div><div 

CodePudding user response:

You should be able to format, or "beautify" the code in the Visual Studio Code editor using the following:

Windows: Shift Alt F Linux: Alt Shift I macOS: F

Alternatively Right click somewhere in the content area (text) for the file Select "Format Document" from the menu.

  • Related