I was looking for a quick solution to this today and after a little bit of digging I found that you can do this in a few ways:

  1. Hit CTRL+A to select the whole file then go to Edit -> Advanced -> Format Selection
  2. Just go to Edit -> Advanced -> Format Document
  3. I like to learn hot keys as much as possible so the hot keys for Format Document are CTRL+K + CTRL+D