Search code examples
intellij-ideaphpstormjetbrains-ide

Show .idea folder in PhpStorm project tool window


PhpStorm hides the .idea folder in the project tool window by default. However, I'd like to show it in order to inspect the files and add/edit a .idea/.gitignore file to include and exclude specific files from version control. I have searched for project configuration options in order to unhide the .idea folder, but haven't found a way.

I could just use another editor to manage the files in the .idea folder, but I'd like to use the git-integration of PhpStorm to manage these files.


Solution

  • For the .idea directory there's a dedicated "registry" setting that controls whether or not it is hidden (it is enabled by default in PhpStorm and PyCharm, at the very least). Here's how to change it:

    1. Click Help | Find Action... and look for registry (or via Maintenance, Press Ctrl-Alt-Shift-/ on Windows when using the default keymap).
    2. If the above keyboard shortcut does not work for you, use your configured keyboard shortcut for Find Action. By default, on Windows it is Shift+Ctrl+A and on Mac it is Shift++A.
    3. Once inside, look for the projectView.hide.dot.idea entry and uncheck it.
    4. Adjust accordingly (before leaving window -- ensure that new value is accepted properly -- e.g. focus another entry).

    Taken from

    Update since Jun 16, 2020:

    You may need to restart your IDE after applying changes in Registry. Thanks to @DavidPauli!