Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding file to project which is outside of the project directory

Tags:

phpstorm

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.

like image 488
ConfusedAmish Avatar asked Sep 25 '14 11:09

ConfusedAmish


1 Answers

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)

PhpStorm Add include path

The way you suggest it can just not be done

EDIT :

Although you cannot hide those other directories, you can ignore them

PhpStorm Ignore directories

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.

like image 96
DarkMukke Avatar answered Oct 11 '22 13:10

DarkMukke