Function insight scope to certain folder
Is it possible to delimit the indexed functions to a certain folder and thus change the scope realm?
For example i have both, my LIVE and DEV environment within the same project. Folder looks like this
- server_root_dir
-- dev_dir
-- live_dir
so if i am within a script at
-- dev_dir
--- some_dir
---- some_file
and try to use the "Functions insight" like jumping to any declaration or method within a certain class at another script..it shows me always "multiple implementations" thus haveing indexed the same function / method / class at the
-- live_dir
so i just want to have thos insights according to my needed context, but i dont want to have two projects, one DEV, one LIVE, i want to have BOTH in one project still...
is that possible?
thank you
timo
Please sign in to leave a comment.
Hi timo,
It is not possible to limit code completion etc to certain folders only, unless you choose to remove (hide) that folder from project completely (Settings | Directories -> mark as excluded).
While having multiple functions with the same name is not really an issue (some PHP standard functions have multiple declarations (parameter names/order)), it is not the case for classes.
Hi Andriy,
so i will add two separte projects its better and more safe to me :)
thank you
timo
Andriy,
I am in a very similar situation, except I cannot separate into multiple projects. What I find a bit odd, though, is when I (on a Mac) Command-click on a method in that very class/file, and I am still asked which file I want to jump to. Is it not possible to have PhpStorm assume that if the method is $this->method_name that I am intending the method in the class-file that is currently in-view?
David