VS Code - format html code

8 points
Created by:

In this short article we would like to show how to format HTML code in VS Code.

Simple steps:

  1. open HTML file,
  2. use one keys combination from below table,
    Depending on operating system:
     Keys combination Operating System
    Shift+Alt+Fon Windows
    Shift+Option+Fon Mac
    Ctrl+Shift+ion Ubuntu
  3. if you dont have selected default formatter you need to select one from displayed list or install new one, e.g:

Alternative titles

  1. VS Code - beautify html code
  2. VS Code - make html code pretty
  3. VSCode - format html code
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!

Visual Studio Code

Native Advertising
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂