0

I have installed the prettier extension on VS Code and use this shortcut - Ctrl+shift+ I. But it doesn't work for me.

Also tried this- Setting the VSCode preference html.format.wrapAttributes to force. But nothing happens.

1 Answer 1

1

If "Format Document" is what you are referring to, you just have to press F1 and search for Format Document or just press Shift + Alt + F

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

3 Comments

I mean formatting of code like proper indentations by selecting the code lines using shortcut commands.
Shift + Alt + F is the shortcut to format a html document at least on VS Code Windows version. It does the indent to your entire code just by using this option
Yes, I tried this but it is not working for VS Code on Ubuntu.

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.