vs code shortcuts /* code example

Example 1: vsc shortcut for html structure

Just press Esclamation mark "!" plus "Enter"... HTML structure will get created

<!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>

Example 2: vscode shortcut to delete line

Mac OS : Command + X  or Command + Shift + K

Example 3: vs code copy a link down

On Windows: Shift + Alt + Up/Down.
On Mac: Shift + Option + Up/Down.
On Ubuntu: Ctrl + Shift + Alt + Up/Down.

Example 4: command palette vscode

On windows: Use Ctrl+Shift+P to open the commmand palette

Example 5: vscode command to select a whole line

windows: Ctrl + L
MacOS: Command + L

Tags:

Html Example