If you are scripting using javascript, you can use dcrosta’s answer.
But if you want to pretty print directly on the mongo interactive shell, you have to append pretty() to your find() queries.
Type on the shell:
db.yourcollection.find().pretty()