Home > Software engineering >  create default html opening code in Visual Studio Code
create default html opening code in Visual Studio Code

Time:02-08

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.

CodePudding user response:

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

CodePudding user response:

Just give the ! sign and then press Tab.

A tutorial I found on the internet because I don't want to make one

  •  Tags:  
  • Related