31

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,728
  • 6
  • 31
  • 41
  • 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
  • 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

1 Answers1

53

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

Pavlo Zhukov
  • 2,718
  • 3
  • 23
  • 39
  • 7
    Finally an answer other than "It's hidden for a reason"! Cheers – Nathaniel Rogers Apr 27 '20 at 04:30
  • 7
    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
  • 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