0
Q:

visual studio code html template shortcut

type "!" (exclamation mark) and press enter in vs code.

//below code will be generated
<!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>
15
<!-- Enter this text and then hit tab --> 
<!-- Language mode must be HTML -->

html:5 

9
First set HTML to the language
Then type:

html:5

And hit Tab

Voila, HTML Template in your favorite code editor!
13

New to Communities?

Join the community