TIL: VS Code Tasks

VS Code has a built-in Tasks feature that lets you run shell commands without leaving the editor. Drop a .vscode/tasks.json in your project and bind make (or whatever) to Cmd+Shift+B.

Set "reveal": "silent" and the terminal panel won't steal focus unless there's an error. You stay in the editor while the build runs in the background.