'How can I hide a few files from my phpstorm project
In my PhpStorm project, I have a few files that sit in the root folder and are not modified often.
For example here I rarely touch files like favicon, gruntfile, humans, package, robots, gitignore. So out of all 9 files I only need 3. I can not remove them (they still needed for the project) and they distract my attention.
So I am looking for a way to hide/exclude them. I was able to find similar approach with folders, but it works only with folders. On official phpstorm page there is a page which sounds similar but does something completely different (files still stay in the few, you just can not autocomplete anything from them). Also this answer from SO is also dealing with code inspection, not hiding files.
Solution 1:[1]
Or even easier: click on the gear icon in the project pane and untick "Show excluded files".
Solution 2:[2]
For later versions of PhpStorm (I'm using PhpStorm 2022.1):
- Exclude unwanted files or folders
- Open preferences
- Search for
show excluded - Under the Keymap menu, define a shortcut for toggling
Show Excluded Filesand pressOK - Use the shortcut in the IDE to show/hide excluded files
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Cesare D'Amico |
| Solution 2 | skirato |
