I knew about ⌘-shift-3 and ⌘-shift-4 to get screengrabs in MacOS, but when I was writing the typora post, I wondered if there was a systematic way to capture an entire application window. Turns out there is!

⌘-shift-4-spacebar

You get a nice camera pointer which you can use to select the window you want to grab.

screengrab an entire application window in MacOS