Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I hide a few files from my phpstorm project

Tags:

In my PhpStorm project, I have a few files that sit in the root folder and are not modified often.enter image description here

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.

like image 745
Salvador Dali Avatar asked May 29 '14 01:05

Salvador Dali


People also ask

What is the best way to hide a file?

To hide a file or folder on Windows, open a Windows Explorer or File Explorer window and locate the file or folder you want to hide. Right-click it and select Properties. Enable the Hidden checkbox on the General pane of the Properties window. Click OK or Apply and your file or folder will be hidden.

How do you hide things in files?

To hide one or more files or folders, select the files or folders, right-click on them, and select Properties. On the General tab on the Properties dialog box, check the Hidden box in the Attributes section.


2 Answers

  1. Settings | Scopes

  2. Create new scope that would include only files/folders you want (or opposite: exclude all unwanted files/folders)

  3. Use that scope in Project View panel instead of default "Project"

like image 158
LazyOne Avatar answered Sep 22 '22 18:09

LazyOne


Or even easier: click on the gear icon in the project pane and untick "Show excluded files".

like image 27
Cesare D'Amico Avatar answered Sep 21 '22 18:09

Cesare D'Amico