在Zend Studio的,如何告诉IDE一个变量的类型,所以我有自动完成? [英] In Zend studio, how to tell the ide the type of a variable, so I have auto completion?

查看:188
本文介绍了在Zend Studio的,如何告诉IDE一个变量的类型,所以我有自动完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在PHP中,我们使用包括。所以变量在一个文件中定义,那么他们的范围过于跨越包含文件。
Zend Studio的不知道如何让我使用的是包含文件中的变量的类型,当变量类型是一个大类,这是很烦人的。结果
有没有办法暗示有关变量类型的IDE?在包含文件?

In php we use includes. So variables defined in one file and then their scope spans included files too. Zend studio has no idea how to get the type of the variable I am using inside an included file, this is very annoying when the variable type is a big class.
Is there a way to hint the ide about variable types? in included files?

推荐答案

我有一些code提示完成一篇文章的的Zend Studio和PDT code完成提示可能会有所帮助。然而,这是一个好主意,试图限制从其他文件所需的变量。它可以很容易地做出难以维持code。

I have an article on some code completion tips Zend Studio and PDT Code Completion Tips that might help. However, it is a good idea to try and limit the variables that required from other files. It can quite easily make for difficult to maintain code.

这篇关于在Zend Studio的,如何告诉IDE一个变量的类型,所以我有自动完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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