如何使用Zend Framework设置Netbeans自动完成功能? [英] How to set up Netbeans autocomplete with Zend Framework?

查看:71
本文介绍了如何使用Zend Framework设置Netbeans自动完成功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用Zend Framework时,Netbeans给我的自动完成效果很差.

Netbeans is giving me poor autocomplete results when working with Zend Framework.

是否有一种方法可以与Netbeans一起使用并获得很好的自动完成水平,还是我最好改用NetBeans可能为其提供更好的自动完成结果的框架,例如CodeIgniter?

Is there a way that I could work with Netbeans and get a very good level of autocompletion, or am I better off switching to a framework that Netbeans perhaps provides a better autocomplete results for, such as CodeIgniter?

推荐答案

netbeans使用 phpDocumentor 提供内联文档它的代码完成.为此,它需要访问doc块所在的代码文件.您需要使用Zend Framework代码.

netbeans uses phpDocumentor to provide inline docs for its code completion. In order to do this it needs access to the code files where the doc blocks are. In your case the Zend Framework code.

设置项目时,您需要告诉netbeans这些文件的位置. netbeans中的每个项目都有一个这样的包含路径文件夹

When you set up your project you need to tell netbeans where these files are located. Each project in netbeans has an include path folder like this

如果您右键单击它并单击属性",将进入对话框,该对话框允许您从项目外部将代码添加到包含路径.

If you right click on this and click 'properties' you will be taken to a dialogue that allows you to add code from outside your project to the include path.

library/Zend文件夹添加到此对话框中,这样您将获得以下信息:-

Add the library/Zend folder to this dialogue so that you get something like this:-

这应该允许netbeans为您提供ZF的代码完成.完成的结果:-

This should allow netbeans to give you code completion for ZF. The finished result:-

查看 netbeans文档以获取更多信息.

这篇关于如何使用Zend Framework设置Netbeans自动完成功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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