Publish & Tools

Visual Studio Code

The editor we use in this course. Here's how to work in it like a pro — the habits, shortcuts, and settings that make web development faster and cleaner.

01 · Best Practices

Work like a pro

A few habits separate a tidy, fast workflow from a frustrating one. Build these in early.

Open the folder, not files

Use File › Open Folder and work from the whole project. The Explorer, search, and relative paths all depend on it.

Save & format on save

Turn on auto-save and format-on-save (with Prettier) so your code stays consistent without thinking about it.

Use the built-in terminal

Open it with Ctrl ` — run Git, npm, and scripts without leaving the editor.

Preview with Live Server

Right-click your HTML › Open with Live Server for an auto-refreshing preview as you edit.

Search across the project

Ctrl Shift F searches every file at once — far faster than hunting by hand.

Commit early, commit often

Use the Source Control panel to stage and commit small changes. Future-you will thank present-you.

Folder hygiene: keep index.html at the project root, group assets in images/, css/, js/, and use lowercase, hyphenated file names (about-us.html, not About Us.html).
02 · Keyboard Shortcuts

Shortcuts worth memorizing

The handful that save the most time. (Mac uses Cmd where Windows uses Ctrl.)

ActionWindows / LinuxMac
Command PaletteCtrl Shift PCmd Shift P
Quick-open a fileCtrl PCmd P
Toggle terminalCtrl `Ctrl `
Comment / uncomment lineCtrl /Cmd /
Format documentShift Alt FShift Option F
Select next match (multi-cursor)Ctrl DCmd D
Move line up / downAlt / Option /
Copy line up / downShift Alt / Shift Option /
Find in this fileCtrl FCmd F
Find across all filesCtrl Shift FCmd Shift F
Rename symbol everywhereF2F2
Save allCtrl K SCmd Option S
Want the full list and practice drills? See the Keyboard Shortcuts page.
03 · Settings & Customization

Make it yours

Open settings with Ctrl ,. For precise control, open settings.json from the Command Palette (“Preferences: Open User Settings (JSON)”) and paste a starting point like this:

settings.json

{
  "editor.formatOnSave": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.tabSize": 2,
  "editor.wordWrap": "on",
  "editor.fontSize": 14,
  "files.autoSave": "afterDelay",
  "files.trimTrailingWhitespace": true,
  "emmet.triggerExpansionOnTab": true,
  "workbench.colorTheme": "Default Dark Modern"
}

Handy customizations

Tip: commit a .vscode/settings.json in a project to share formatting rules with teammates (or your future self).
04 · Next Steps

Keep going

New to the editor? Start with VS Code Setup to install and configure it. Then drill the Keyboard Shortcuts, and when you're ready to publish, see GitHub and Netlify Deploy.