How to Always Show Hidden Files in macOS Finder

One of the most annoying things as a developer setting up a Mac is that files with a dot are hidden by default. Here is how to set them always to be visible:

  1. Open Terminal (Command + Shift and type Terminal)
  2. Run defaults write http://com.apple.Finder AppleShowAllFiles true

You can toggle them in Finder by using Command + Shift + . but having them show by default is a lot nicer.