New versions on macOS allow you to toggle the ability to view/work with hidden files.
For those developing on macOS - pressing down Command + Shift + Period (Command + Shift + .) in the file system of macOS will hide or show invisible files. This will allow you to toggle the ability to create and work with dot files.
For simple viewing or editing of dot files, this approach would probably work the best. Note that, while this toggle is active, seems to be a system wide switch, allowing other apps to access/open the dot files as you would any text file.