Exercise 2: Install Prettier & Format a File — Possible Solution ==================================================================== STEPS ------------------------------ 1. Press Ctrl+Shift+X, search for "Prettier" — the official "Prettier - Code formatter" extension (by Prettier) appears near the top. 2. Click Install. 3. Open (or create) a messily-formatted JSON file, for example: {"name":"Ada","age":28,"languages":["Python","JavaScript"]} 4. Press Ctrl+Shift+P to open the Command Palette (Chapter 2), type "Format Document", and press Enter. 5. If this is the first time formatting this file type, VS Code may ask which formatter to use — select Prettier. The file reformats immediately: { "name": "Ada", "age": 28, "languages": ["Python", "JavaScript"] } WHAT TO NOTE ------------------------------ Prettier made every formatting decision itself — indentation, spacing after colons, line breaks — with no configuration required, exactly the "opinionated, zero-configuration" description from the chapter. Optionally, enabling "Format On Save" in Settings makes this happen automatically every time you save, removing the need to run the command manually at all going forward. WHY THIS WORKS AS AN ANSWER ------------------------------ This exercise reuses two things from earlier chapters directly: installing an extension via the Extensions view (this chapter's own Marketplace section) and running a command via the Command Palette (Chapter 2) — tying the new skill to already-established navigation habits rather than introducing yet another new mechanism. Choosing a JSON file specifically demonstrates that Prettier isn't JavaScript-specific — it formats several different file types consistently, which is part of why it's listed among this chapter's "genuinely essential regardless of language" picks.