Shortcuts for HTML/CSS in Visual Studio Code
Let’s get started with web development using Visual Studio Code.
Shortcuts for HTML/CSS in Visual Studio Code
Add HTML template:
Typehtml:5
to generate the basic HTML template structure.Save the file:
TypeCtrl+S
on Windows to save the file.Link CSS:
Add a blank line, typelink
, and press Enter. This will add the following line to your HTML file:<link rel="stylesheet" href="">
Preview:
Right-click html file, and select Open In Default BrowserInspect Webpage/Open developer tools
Press F12Reload the Webpage
Press F5Link Javascript
On a new line before the closing