Q119 [Scenario]: A developer needs to rename variables and convert a 10-line callback function to Async/Await directly inside an open file. What is the most efficient workflow?
Highlight the 10 lines of code, press Cmd + I (macOS) or Ctrl + I (Windows/Linux) to launch Inline Chat, type 'Convert to async/await', review the inline diff preview, and click 'Accept'.
Key Takeaways
Inline Chat offers direct side-by-side diff previews inside the editor.
Optimal for targeted refactoring without leaving the active line context.
Knowledge Check
What feature provides inline diff previews for quick code refactoring in VS Code?