Rudrakshi
Rudrakshi

Reputation: 57

How to format HTML code in VS Code on Ubuntu?

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.

Upvotes: 0

Views: 566

Answers (1)

Benja Oliva
Benja Oliva

Reputation: 40

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

Upvotes: 1

Related Questions