how to take a screenshot of a window mac code example Example: screenshot window mac Press and hold these keys together: Shift, Command, 4, and Space bar.