Generating HTML Boilerplate in VSCode

Ole Ersoy
Oct 30, 2023

--

Image by Else Siegel from Pixabay

Scenario

We want the following boilerplate generated in VSCode.

<!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 a new index.html document. Type ! followed by a tab and voila the code is generated.

--

--