Exercise 2: Rebind a Command — Possible Solution ==================================================================== STEPS ------------------------------ 1. Press Ctrl+K Ctrl+S (Ctrl+K, release, then Ctrl+S) to open the Keyboard Shortcuts UI. 2. In the search box, type a command name — for example, "Toggle Word Wrap" (reused from Chapter 2's own Command Palette example). 3. Hover over the result row. A pencil icon appears on the right. 4. Click the pencil icon, then press a new key combination, e.g. Ctrl+Alt+W. 5. Before confirming, check for a conflict warning — if Ctrl+Alt+W is already bound to something else, VS Code shows an inline notice (e.g. "1 existing command has this keybinding") right in the input area. 6. If a conflict appears, press Escape and try a different, genuinely unused combination instead, e.g. Ctrl+Alt+Shift+W, and repeat the conflict check. 7. Once no conflict is shown, press Enter to confirm the new binding. 8. Test it: press your new combination in an editor and confirm word wrap toggles. WHY THIS WORKS AS AN ANSWER ------------------------------ Using the command's real display name to search reuses the chapter's own point directly — the Keyboard Shortcuts UI searches by the SAME command names the Command Palette (Chapter 2) already uses, so a command you already know how to find via Ctrl+Shift+P is found here the identical way. Deliberately checking for the conflict indicator BEFORE confirming reuses this chapter's own warn-box guidance precisely — picking an already-used combination without checking could leave two commands silently competing for the same key, exactly the scenario the warn-box describes. Choosing an alternate combination when a conflict appears, rather than proceeding anyway, is the responsible response the warn-box recommends.