2

There is an HTML document in which there are no indents.

How to structure html code using VS code?
Using extensions or not using extensions.

The initial state of the HTML document.
enter image description here

The required state of the HTML document.
enter image description here

1

3 Answers 3

2

Right click in the file and select 'Format Document'. In Mac, the shortcut is 'Option + Shift + F'. VS Code has built in HTML CSS formatting.

Sign up to request clarification or add additional context in comments.

Comments

0

Install Prettier extension and just Ctrl+Shift+I to structure/decorate the code

Comments

0

You can press alt + shift + T or install Beautify extension, then press F1 and search beautfy, finally get your code indented.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.