Screen captures of windows larger than screen

You can take screenshots of entire windows, even those that extend beyond the bounds of the screen, by pressing ⌘⇧4, then space, then clicking the window.