asad
asad

Reputation: 103

create default html opening code in Visual Studio Code

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

Answers (3)

Malik
Malik

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

I.M. Adil
I.M. Adil

Reputation: 458

Just give the ! sign and then press Tab.

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

Upvotes: 1

Ahmed Ali
Ahmed Ali

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

Related Questions