Sometimes finding and accessing hidden folders or files is needed in macOS Finder – like the user «Library» folder, or directories like «.ssh», «.git», or just inspecting the default user Terminal settings stored in «.zshrc»…
I don’t really like to permanently having hidden files and folders visible, as I find it most of the time too distracting for finding the relevant stuff. This could be achieved through a command in the Terminal app, though.
So what I like instead, is using a simple keyboard shortcut which can instantly toggle showing and hiding hidden files & folders.
Keyboard shortcut to show & hide hidden files and folders in Finder
In macOS Finder press the following key combination to toggle this:
⌘Command + ⇧Shift + .
Note: it doesn’t matter if you have a Finder window open for this – or not.
Example in the macOS root directory
Depending on the current active visibility mode, this toggles to either instantly show – or hide – the hidden files and folders: