Lesson 03 of 4 in Module 02
⏱️ 02 Mins readEdit, preview, search, format
Small wins stack up. This lesson has four micro-skills. Do them in your workspace from Lessons 1–2.
Do this — four drills (20 minutes)
Drill 1 — Change text in two places (search)
- In the IDE, open the search across files panel (often magnifying glass or
Ctrl+Shift+F/Cmd+Shift+F). - Search for
My static siteorHomedepending on what you wrote. - Replace one word in
index.htmlonly (don’t bulk-replace blindly yet).
Goal: See that your site is small—you can find every string fast.
Drill 2 — Same class name in two files (optional stretch)
- Add
class="btn"to one link inindex.htmland one inabout.html. - In
style.css, add:
.btn {
font-weight: 700;
}
- Reload both pages. Both links should look bolder.
Goal: Feel how one CSS file styles many pages.
Drill 3 — Live preview (if your IDE has it)
- Install or open a Live Preview / Live Server-style extension if your setup allows (some workplaces block extensions—skip if so).
- Start preview for
index.htmlif you can. - Edit
<h1>text; watch the preview refresh or save-refresh.
If you have no preview: Keep using save → refresh browser. That is still valid.
Drill 4 — Format a messy file (once)
- Temporarily mess up spacing in
index.html(random blank lines). - Use Format Document (command palette: “Format Document”) or your formatter.
Goal: See the computer clean structure so you read faster.
List three wins (2 minutes)
Write down three IDE actions that felt faster than Notepad:
Examples: search all files, jump to file, format, split editor, file tree.
Check
- You changed content in more than one file without getting lost.
- CSS updates both pages when classes match.
- You can name one way you will use search when AI gives you many files later.
Key takeaways
- Search turns a 3-file site into a 300-file habit later.
- Formatting reduces noise so mistakes stand out.
- Preview (when available) shortens the try-see loop.