iwantcoding.com
🔥 Daily 👥 Rooms 🏆 Top Log in Sign up
Next »

Keyboard Shortcuts

Keyboard shortcuts speed up everything — coding, debugging, navigating the web. Here are the most useful ones for HTML developers.

Browser (works in most browsers)

ShortcutAction
F12 or Ctrl/Cmd + Shift + IOpen developer tools.
Ctrl/Cmd + UView page source.
Ctrl/Cmd + Shift + RHard reload — bypass cache.
Ctrl/Cmd + FFind in page.
Ctrl/Cmd + + / -Zoom in / out.
Ctrl/Cmd + 0Reset zoom.

VS Code

ShortcutAction
Ctrl/Cmd + PQuick open by filename.
Ctrl/Cmd + Shift + PCommand palette.
Ctrl/Cmd + DAdd next match to selection.
Ctrl/Cmd + /Toggle line comment.
Alt + / Move line up / down.
Shift + Alt + Duplicate line.
Ctrl/Cmd + EnterInsert line below.
Ctrl/Cmd + `Open terminal.

Emmet (HTML expansion in VS Code)

TypeExpands to
!Full HTML5 document boilerplate.
div.card<div class="card"></div>
ul>li*3A <ul> with three <li> children.
a[href=/]<a href="/"></a>
Tip: Don't try to memorise everything at once. Pick three shortcuts a week, paste them on a sticky note, and use them until they're automatic.

Example

Example
<!DOCTYPE html>
<html>
<head>
    <title>Keyboard Shortcuts</title>
</head>
<body>

<h1>Keyboard Shortcuts</h1>
<p>This is a demo page for the "Keyboard Shortcuts" lesson.</p>

</body>
</html>
Try it Yourself »

Exercise

Which keyboard shortcut on this site opens the AI assistant panel?

Ctrl +

Test yourself

Q1. Common "save" shortcut is…
Q2. Browser DevTools shortcut is…
Q3. Adding `accesskey="x"` enables…

Discussion

Loading…

Next »