Since the release of macOS Sierra, when in Finder, it is now possible to use the shortcut: CMD + SHIFT + .

Press once to show hidden files and again to hide them.

That's all.