Reputation: 103
In some html editors when you create a new html file, some default codes as below created automatically:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8"/>
</head>
<body>
</body>
</html>
how can I enable this feature in VSCode editor?
Thanks.
Upvotes: 0
Views: 3709
Reputation: 11
In VS code( enter ctrl+n {it creates a empty text file}) then there is a link fill with the template click that link it shows HTML doc type ..click that link it automatically creates a basic html file format
Upvotes: 0
Reputation: 537
Press shift and 1 (!) It will show two options select the first one or type html:5 and enter the option it will give you default boilerplate for html
Upvotes: 3