問題描述
在使用 Zend Framework 時,Netbeans 給我的自動完成結果很差.
有沒有一種方法可以讓我使用 Netbeans 并獲得非常好的自動完成水平,或者我最好切換到 Netbeans 可能為其提供更好的自動完成結果的框架,例如 CodeIgniter?
netbeans 使用 了解更多信息.
Netbeans is giving me poor autocomplete results when working with Zend Framework.
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 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.
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.
Add the library/Zend
folder to this dialogue so that you get something like this:-
This should allow netbeans to give you code completion for ZF. The finished result:-
Check the netbeans documentation for more information.
這篇關于如何使用 Zend Framework 設置 Netbeans 自動完成功能?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!