36

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.

aimfeld
  • 2,931
  • 7
  • 32
  • 43
  • 2
    There shouldn't be a .gitignore in the .idea/ folder. You should just add it to the .gitignore file in your project root and set exclusions there. The .idea folder is just for PhpStorm internals/settings. You can ignore the idea folder, but set exclusions for some files you would want to commit/track (e.g. if you want your code style rules to apply for all devs in your team, just exclude the code style settings file from being ignored and it will commit). – Oldskool Oct 08 '15 at 09:08
  • Well .. there is special option to show `.idea` folder in a Project View panel .. but as @Oldskool already said -- there is *absolutely no need* for that in your case -- you should manage such exclusions via `.gitignore` file in a project root. – LazyOne Oct 08 '15 at 20:01
  • 1
    As you suggest, I will use a .gitignore file in the project root. It's still helpful for me to inspect the contents of the files in the .idea folder directly in PhpStorm. I found the option to display the .idea folder in the project tool window, there's a dropdown which I changed from `Project` to `Project Files`. – aimfeld Oct 09 '15 at 09:49

4 Answers4

70

For .idea there is dedicated registry setting for it as well (it is enabled by default for me, in PhpStorm at very least)

  1. Help | Find Action... and look for registry (or via Maintenance Ctrl+Alt+Shift+/ on Windows using Default keymap)
  2. Once inside -- look for projectView.hide.dot.idea entry
  3. Adjust accordingly (before leaving window -- ensure that new value is accepted properly -- e.g. focus another entry)

Took from

Update since Jun 16, 2020:

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

Pavlo Zhukov
  • 3,007
  • 3
  • 26
  • 43
  • 13
    Finally an answer other than "It's hidden for a reason"! Cheers – Nathaniel Rogers Apr 27 '20 at 04:30
  • 8
    Important: You need to restart after that. – David Pauli Jun 16 '20 at 05:24
  • IDE restart is not required. You can simply do right-click in the project view and then `Reload from Disk` in the context menu. P.S: as I remember, earlier it was affected even without reload, but I can be wrong because it is so long ago when I enabled that option – Pavlo Zhukov Jun 17 '20 at 00:35
  • 3
    Thanks! Solved it for me after switching to PhpStorm 2021.1. I needed to restart the IDE. `Reload from Disk` was not sufficient (tried it twice). – Thomas Praxl Apr 14 '21 at 14:18
  • 1
    Thanks for providing a solution instead of telling why. – Mert Aşan Jun 24 '21 at 21:27
  • 1
    This setting must also be unchecked in PyCharm Professional, 2021.1.2, to show .ideia folder. Probably in other IDEs JetBrains that this folder is hidden by default is all about that setting. – Leandro Arruda Jun 26 '21 at 20:09
  • I had to restart the IDE too. Reload from Disk was not sufficient. – calvin Mar 25 '23 at 15:45
  • On Mac with PhpStorm 2023.1 i managed it on this way: Help > Edit Custom VM Options... will open the file PhpStorm.app.vmoptions in editor. In this file added a new line `-DprojectView.hide.dot.idea=false`. And than just restart PhpStorm – phse Apr 13 '23 at 10:59
1

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!
Seth
  • 11
  • 3
1

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

Chris
  • 3,311
  • 4
  • 20
  • 34
0

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

screenshot.

helvete
  • 2,455
  • 13
  • 33
  • 37
D_Pavel
  • 29
  • 5