Get rid of .github folder from project tree in PhpStorm
In 2024 it is as simple as two steps and a couple of clicks:
(click the image above, if animation seems frozen)
These two steps are:
- Right-click .github and select: Mark directory as → Excluded
- Click three-dot button and uncheck Appearance → Excluded Files
The Excluded Files list is per-project setting, so you must repeat these steps for each of your projects.
This is, of course, purely visual fix, to hide a folder. If you want to ignore it, you must use the usual way of adding it to .gitignore folder.