I have a following root structure
dir1
dir2
index_dir
dir3
...
index.php
I wanna have a project in phpStorm (7.1.3) so that I see only index_dir and index.php
the problem is that if I create a new project via "Open directory" I will have only index_dir in my project. I would like to add the file index.php to that project and not every other directory. How can I do that. It's driving me nuts.
You can always setup an include path to a lower level directory but this will not work if you project is in the directory of you external library / included path (endless loop)
The way you suggest it can just not be done
EDIT :
Although you cannot hide those other directories, you can ignore them
Ignored directories will not be indexed
EDIT 2017 : In the later versions of PHPStorm, eg v2017.1 and later you can now open multiple projects int he same window, this is by far the best solution you will ever get.