Exercise 2: Rename Every Occurrence — Possible Solution ==================================================================== EXAMPLE FILE ------------------------------ let userCount = 0; userCount = userCount + 1; console.log(userCount); STEPS ------------------------------ 1. Double-click the word "userCount" anywhere in the file to select one occurrence of it. 2. Press Ctrl+Shift+L (Cmd+Shift+L on macOS). Every occurrence of "userCount" in the file is selected simultaneously (3 occurrences in this example), each with its own cursor. 3. Type the replacement name, e.g. "totalUsers" — all 3 occurrences are renamed at once, in a single typed action: let totalUsers = 0; totalUsers = totalUsers + 1; console.log(totalUsers); 4. Press Escape to collapse back to a single cursor. WHY THIS WORKS AS AN ANSWER ------------------------------ Ctrl+Shift+L reuses the chapter's own described behavior exactly — unlike Ctrl+D (which adds occurrences one at a time, requiring one keypress per match), Ctrl+Shift+L jumps straight to selecting EVERY occurrence in the file in a single keystroke, which the chapter specifically calls out as the faster option once you know you want all matches rather than a chosen subset. This exercise is a genuinely realistic use case rather than an artificial one — renaming a variable used in several places is one of the most common editing tasks in real code, and doing it with a single multi-select-then-type action avoids the error-prone alternative of manually editing each occurrence separately (and potentially missing one).