标准功能的NetBeans PHP代码完成 [英] NetBeans PHP Code Completion for Standard Functions

查看:106
本文介绍了标准功能的NetBeans PHP代码完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始使用NetBeans 6.9.1来开发PHP项目.尽管它确实在一定程度上提供了代码完成功能,但是它绝不是完整的.例如,常用功能(例如implode,explode)不在代码完成列表中.而且,对由内置类(例如HttpRequest)制成的对象进行代码完成会很方便.

I have started to use NetBeans 6.9.1 for developing PHP projects. Although it does provide code completion to certain extent, but it's by no means complete. For example, commonly used functions such as implode,explode are not in the list for code completion. Also, it would have been convenient to have code completion for objects made from built in classes, such as HttpRequest.

无论如何,上述项目仍需获得代码完成.

Is there anyway to obtain code completion for the items mentioned above.

推荐答案

尝试一下...

  • 工具->选项
  • 选择编辑器"
  • 选择代码完成"
  • 在语言下拉列表中选择"PHP"

您将仅看到PHP项目的代码完成选项列表

You will see a list of code completion options for PHP project ONLY

  • 如果您设置了全局变量/对象,则变量的代码完成"设置为所有变量"
  • 如果您使用的是前面没有静态的方法作为静态方法,请确保在类方法的代码完成"下您有"::之后还有非静态方法"

如果未使用命名空间PHP 5.3,请确保您的项目的类型是对PHP 5.2/5.1的测试.要对其进行检查,请右键单击您的项目->属性->源-> PHP版本.

If you are not using namespaces PHP 5.3, make sure you project is type is test to PHP 5.2/5.1. To check it, right click your project->Properties->Sources->PHP Version.

这篇关于标准功能的NetBeans PHP代码完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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