I\'m using PhpStorm 6.0.3, and it doesn\'t show any directories in the Project Tool Window. They were there just a minute ago but I managed to make them disappear by clicking or
So, it's now a couple of months later and made the same mistake. Only this time I made 1 directory disappear and was accidentally pointed in the right direction by PhpStorm itself. I excluded the directory from the project, so it didn't show up anymore. Apparently exluded dirs are not saved in the project settings since re-creating the project didn't help.
Here is how I found it back: File > Settings > Project settings > Directories There I saw my dir flagged with a red icon, meaning excluded. Just right-click it and click 'exclude' once again. Tadaaaa it's back.
I can't believe I've overlooked it so many times...
I just solved a similar problem with Webstorm (Windows version 10.0.1) in a Cordova project. I created a new directory within the www folder, did not add any files and closed Webstorm. When I restarted Webstorm the next day, the new folder was invisible but existed as Webstorm refused to create a new one with an " ... already exists" error message and the file was listed as visible in the directories settings.
I solved the problem this way: Closed Webstorm -> Added a file to the empty folder with the Windows file browser -> Opened Web Storm -> The folder and the file was shown.
Go to PhpStorm setting(Ctrl+Alt+s) type and select 'file types' not 'other file types'!(Editor > File Types) in 'Ignore files and folders' remove all extension you need(i remove all!).
Apply it and you can see all your files in PhpStorm
You can delete .idea/workspace.xml file.
The below methods showed they were successful but still failed to show some directories which were empty or had a few files
What worked for me was closing the project having the issue and reopening it another project window and choosing open in the current window
File -> Settings -> Directories -> + Add content root
Happy Coding!