您如何添加一个PHP框架来代码完成/协助Eclipse PDT,并且框架可以默认添加到所有项目中? [英] How do you add a PHP framework to code completion/assist in Eclipse PDT and can the framework be added as default for all projects?

查看:141
本文介绍了您如何添加一个PHP框架来代码完成/协助Eclipse PDT,并且框架可以默认添加到所有项目中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Eclipse PDT中添加一个PHP框架来代码辅助/完成?

How do you add a PHP framework to code assist/completion in Eclipse PDT?

是否可以为所有项目添加默认框架? / p>

And is it possible to have that framework added as default for all projects?

推荐答案

一般来说,在Eclipse中,您可以通过以下方式添加一个库或框架来代码辅助/完成:

Generally speaking in Eclipse, you can add a library or framework to code assist/completion by:


  1. 进入项目>属性

  2. 在PHP包含路径下,选择Libaries选项卡。

  3. 添加一个外部文件夹,其中包含您的框架所在的路径。

这也可以在项目中完成创建。我不知道有没有办法以这种方式自动附加图书馆。

This can also be done on project creation. I'm not sure of a way to have it automatically attach a library in this way.

功能本身比这更灵活,可以让你做事情像DB连接的设置变量,而不是将冗长的配置文件复制到本地安装。

The feature itself is a bit more flexible than that, allowing you to do things like set variables for a DB connection, rather than having to copy down lengthy config files to your local install.

这篇关于您如何添加一个PHP框架来代码完成/协助Eclipse PDT,并且框架可以默认添加到所有项目中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆