Jake Worth

Jake Worth

Printing Code on a Mac

Published: October 13, 2020 2 min read

  • til

A few times over the years, I’ve had to print out code that I’ve written onto physical paper. I have heard that some teams do team code reviews on paper, which sounds fun. Getting code to look good on paper can be tricky, especially for the Vim and Emacs users out there.

My solution? Open the file in TextEdit, which ships on every Mac. TextEdit displays the file in plain text, just like Vim. ⌘ + P to print it.

Do this even faster via the command line:

$ open -e your-file.txt

Get better at programming by learning with me. Subscribe to my newsletter for weekly ideas, creations, and curated resources from across the world of programming. Join me today!