在 Komodo IDE 中,是否可以告诉文件其中包含哪些内容,以便 IntelliSense 工作?
文件 A 包含文件 B 和 C。
因此,C 可以访问 A 和 B 中定义的所有内容,但 C 不知道这一点。我如何告诉 C 它实际上具有访问权限以便 IntelliSense 工作?
也许一个更清楚的例子:
如果 master.php
包含 library.php
和 page.php
那么 page.php
可以访问 library.php
,但 page.php
无法知道这一点。我想手动告诉 page.php
已包含 library.php
,并让 Komodo 将其保存在某些元数据或项目文件中。
File A includes files B and C.
C thus has access to all the stuff defined in A and B, but C doesn't know that. How can I tell C that it actually has access so that IntelliSense works?
Perhaps a more clear example:
If master.php
includes library.php
and page.php
then page.php
has access to library.php
, but there's no way for page.php
to know that. I want to manually tell page.php
that library.php
is already included, and have Komodo save this in some meta data or project file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
基本答案是,根据您的 Komodo 设置,它会自动收集它(尽管根据我的经验,它不是 100% 可靠)。您可以在 IDE 设置中设置自动导入智能感知的目录。我会检查两个地方:
转到 Komodo IDE 中的编辑->首选项->代码智能,并确保“包含项目基目录中的所有文件和目录”
转到编辑- >首选项->语言->PHP 并将任何其他目录添加到导入中,例如 Zend Framework。
The basic answer is that, depending on your Komodo settings, it will automatically gather it (though in my experience it's not 100% reliable). You can set which directories to automatically import for intellisense in the IDE settings. Two places I would check:
Go to Edit->Preferences->Code Intelligence in Komodo IDE and make sure 'Include all files and directories from the project base directory'
Go to Edit->Preferences->Languages->PHP and add any other directories to the import like Zend Framework, for instance.