Instant HTML Boilerplate in VSCode With Emmet | Task

Ole Ersoy
Jan - 15  -  1 min

Scenario

We want to produce the following html boilerplate:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>    
</body>
</html>

Approach

Create an empty index.html document. Place the cursor inside the html editor content and type !. You will get content selection dialog that looks like this:

instant html in vscode

Select that and now the html start boilerplate is ready to go!

Bonus

What you need more!? Fine here’s the emmet cheatsheet.