Show Hidden Files in Mac Save Window
In this article
To show hidden files in a Mac save window, press Command + Shift + Period (⌘⇧.) while the save dialog is open. This keyboard shortcut toggles the visibility of hidden files and folders (those whose names begin with a dot) in the current view, and it works in both the Save and Open dialog boxes across most applications.
Why Hidden Files Exist on macOS
macOS, like other Unix-based systems, uses hidden files and folders to keep essential configuration and system data out of sight. These items typically start with a period (for example, .gitignore, .ssh, or .DS_Store). The Finder hides them by default to prevent accidental modification or deletion, which could break applications or the system itself. However, when you need to save a file into one of these hidden directories—such as a project folder containing a .git directory—you must be able to see them in the save window.
How the Shortcut Works
The Command + Shift + Period shortcut is a global toggle within the save and open dialogs. It does not change your Finder preferences; it only affects the current dialog window. When you press it, the dialog refreshes to show hidden files, and pressing it again hides them. This behavior is consistent across native macOS apps like TextEdit, Preview, and Pages, as well as many third-party applications that use the standard Cocoa file dialogs. The shortcut is also useful in the Finder itself—pressing it in a Finder window toggles hidden files there as well.
Steps to Show Hidden Files in a Save Window
- Open any application and initiate a save (e.g., File > Save or Command + S).
- In the save dialog, navigate to the folder where you want to save, or where you expect hidden files to appear.
- Press Command + Shift + Period simultaneously.
- The dialog will now display hidden files and folders, which appear slightly faded in some apps.
- Select the desired location or type your filename, then click Save.
Alternative Methods
If the keyboard shortcut does not work in a particular app—some non-native or custom dialogs may not support it—there are other ways to access hidden folders:
- Use the “Go to Folder” command: In the save dialog, press Command + Shift + G (or Go > Go to Folder in the Finder) and type the full path to the hidden folder (e.g.,
~/.ssh). This opens that location directly, even if hidden files are not visible. - Change Finder settings: While this does not affect the save dialog, you can make hidden files permanently visible in Finder by running the terminal command
defaults write com.apple.finder AppleShowAllFiles -bool trueand then restarting Finder (or logging out and back in). However, this does not force save dialogs to show hidden files—they still require the shortcut, though some users report that the setting can influence certain apps. - Use Terminal: If you need to save a file into a hidden directory and the app won’t let you, you can save it to a visible location and then use Terminal to move it, e.g.,
mv ~/Desktop/file.txt ~/.config/.
Common Problems and Fixes
If the shortcut seems to do nothing, check the following:
- Focus: Make sure the save dialog is active and not a background window. Click once inside the dialog before pressing the shortcut.
- Keyboard layout: The period key may be in a different position on non-US keyboards, but the shortcut still uses the same key. If you have remapped keys, the shortcut may not work.
- App restrictions: Some apps (especially those with custom file pickers) may not support the shortcut. In that case, use the “Go to Folder” method or save elsewhere and move the file.
- macOS version: The shortcut has been available since OS X Lion (10.7) and remains in current versions, so it should work on any reasonably modern Mac.
Hidden Files vs. Package Contents
A common misconception is that hidden files are the same as package contents. Packages (like .app files) are folders that appear as a single file in Finder, but they are not hidden—they are just treated as a bundle. To view the contents of a package, you right-click and select Show Package Contents. Hidden files, on the other hand, are invisible by default and require the shortcut or a Finder setting to see. Saving into a package is usually not recommended unless you know what you are doing, as it can corrupt the application.
Frequently Asked Questions
Does Command+Shift+Period work in every Mac app?
It works in most apps that use the standard macOS file dialog, including Apple’s own apps and many third-party ones. However, some apps (like certain Adobe products or apps with custom dialogs) may ignore it. In those cases, use the “Go to Folder” shortcut (Command+Shift+G) to navigate directly.
Will showing hidden files in the save window affect my system?
No, toggling visibility does not change any files. You are only changing what is displayed. However, be cautious when saving into hidden system folders—accidentally overwriting a system file can cause problems. Only save to hidden folders you understand, like your user’s .ssh or a project’s .git directory.
How do I hide them again?
Press the same shortcut Command + Shift + Period again. The dialog will refresh and hidden files will disappear. This toggle is temporary and resets each time you open a new save window.
Can I make hidden files always visible in save dialogs?
There is no permanent setting for save dialogs specifically. The shortcut is the only built-in way. You can, however, set Finder to always show hidden files, which may influence some apps, but it is not guaranteed. The shortcut is the reliable method.
Why can’t I see the hidden folder I just created with Terminal?
Folders created with a leading dot (e.g., .myfolder) are hidden by default. In the save window, press the shortcut to reveal them. If you still don’t see it, ensure you are in the correct parent directory—hidden files only appear in the folder you are currently viewing.