如何在NetBeans中获取包含文件的建议

如何在NetBeans中获取包含文件的建议

本文介绍了如何在NetBeans中获取包含文件的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,可以获得包含在包含文件中的类的建议。

i have a problem to get suggestions for classes which are included in included files.

例如。文件'Header.php'的内容是:

E.g. content of file 'Header.php' is:

//File 'Header.php':
include('User.php'); //Class file



当我现在将Header.php包含在我的文件Example.php我没有得到任何建议:

When I now include the Header.php in my file 'Example.php', i do not get any suggestions:

//File 'Example.php':
include('Header.php');
User::

输入User :: I exspect类User后的Methods和Vars建议,但没有任何。如果我'直接包含'User.php'在我的Example.php它的工作,但这不会帮助我。如何解决这个问题?

After typing User:: I exspect Methods and Vars of class User as suggestions, but there arent any. If I would include 'User.php' directly in my 'Example.php' it works, but that doesn't help me. How to solve this problem?

推荐答案

这对我很好,但所有的文件都必须包含在一个项目文件。你不能只打开随机文件并包括它们。此外,如果它滞后,请尝试按Crtl +空格。

This works fine for me, but all the files have to be included in a Project file. You can't just open random files and include them. Also, if it's lagging, try pressing Crtl+Space.

这篇关于如何在NetBeans中获取包含文件的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 16:44