shortcut to get html template in vs code code example

Example 1: vsc shortcut for html structure

Just press Esclamation mark "!" plus "Enter"... HTML structure will get created

<!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>

Example 2: html boilerplate vscode

<!-- Enter this text and then hit tab --> 
<!-- Language mode must be HTML -->

html:5

Example 3: visual studio code html template shortcut

type !
them press Enter 
Then you get your HTML template for VS code :)

Example 4: visual studio code html template shortcut

First set HTML to the language
Then type:

html:5

And hit Tab

Voila, HTML Template in your favorite code editor!

Tags:

Misc Example