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:
Hey 👋
Would you like to know what we do?
  • Dirask is a friendly IT community for learners, professionals and hobbyists to share their knowledge and help each other in extraordinary easy way.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.