Home  >  Article  >  Backend Development  >  phpstorm 如何关联多个项目

phpstorm 如何关联多个项目

WBOY
WBOYOriginal
2016-06-06 20:27:371843browse

情况是这样的,假设有两个项目,项目A和项目B;
每次phpstorm只能打开一个项目,我先打开项目A,但是项目A里面有的类的源码在项目B中,但是phpstorm是不知道的。
请问怎么让项目A中的类关联到项目B中的源码呢?

可不要让我把项目A和项目B放在一个文件夹下,然后在phpstorm中打开哦。这种处理方式不是解决问题的根本方法。

谢谢了。

回复内容:

情况是这样的,假设有两个项目,项目A和项目B;
每次phpstorm只能打开一个项目,我先打开项目A,但是项目A里面有的类的源码在项目B中,但是phpstorm是不知道的。
请问怎么让项目A中的类关联到项目B中的源码呢?

可不要让我把项目A和项目B放在一个文件夹下,然后在phpstorm中打开哦。这种处理方式不是解决问题的根本方法。

谢谢了。

preference => project => directories 中可以配置多个目录,如果两个项目都经常修改建议这种

另一种是 preference => language => php => include path 中也可以增加目录,如果某个项目不经常修改(类库、基础库之类)建议这种

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn