简短回答:保持源文件夹列表相同(默认情况下Eclipse将为您提供帮助).
更长的回答:
The easy/straightforward part: the include path settings in Eclipse PDT is the list of paths/projects/libraries that will be used as include path when launching your project (e.g. as PHP CLI app) from Eclipse.
The include path is also partially (see below) used for content assist (aka code completion). For example, if you have some external libraries or a linked project in your include path settings, you will have content assist, documentation popups, etc on functions and classes from these resources.
对于包含路径的"源"选项卡上的项目,这不完全正确.这些只考虑运行时包含路径(从eclipse启动应用程序时)和内容辅助include以及requirePHP语句.
对于所有其他方便的东西也可以工作(内容辅助正常的PHP代码,doc弹出窗口,点击,......)你必须在构建路径下定义这些源(以及).
据我所知,构建路径是PDT 2.0中包含路径的源项的"分支"(参见http://www.eclipse.org/pdt/release-notes/pdt2_0.php)作为优化功能,以加快构建过程.
因此,除非您正在处理具有构建速度问题的复杂/大型项目,否则将源项目保留在构建和包含路径上可能是最好/最不容易的.
构建路径是一组路径,IDE 将使用它来解析代码、显示错误、返回自动完成方法等...
include路径是与PHP执行配置的include路径类似的路径。
如果您有应该执行的代码,但您不想在 IDE 中看到全部内容,则可以仅在包含路径中定义它。
当然,在执行/调试过程中,构建路径中定义的所有路径都会自动添加到包含路径中,在这种情况下,构建路径将被追加到包含路径中。
| 归档时间: |
|
| 查看次数: |
2680 次 |
| 最近记录: |