aimfeld
aimfeld

Reputation: 3171

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.

Upvotes: 42

Views: 17062

Answers (4)

Pavlo Zhukov
Pavlo Zhukov

Reputation: 3347

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!

Upvotes: 89

Chris
Chris

Reputation: 3486

Tested on latest WebStorm & PhpStorm, and it is as simple as adding the following setting (highlighted in the screenshot) !.idea to Editor > File Types.

show the ".idea"-folder

And here is the result:

enter image description here

Upvotes: 4

D_Pavel
D_Pavel

Reputation: 69

Please just change the representation of "Project" panel to "Project files" as shown on the screenshot:

screenshot.

Upvotes: 4

Seth
Seth

Reputation: 9

As of PyCharm 2022.2.2, this does not appear to work. After trying various ways of unhiding the .idea folder I had hoped this would be it.

  • edit: While the registry setting did not work, removing the .idea folder from the Settings/Editor/File Types/Ignored Files and Folders did work!

Upvotes: 1

Related Questions