如何在Eclipse(AptanaStudio 3)中完成Zend框架视图帮助程序代码?

如何在Eclipse(AptanaStudio 3)中完成Zend框架视图帮助程序代码?,eclipse,zend-framework,code-completion,aptana,Eclipse,Zend Framework,Code Completion,Aptana,我正在使用AptanaStudio 3(基于Eclipse构建)编辑我的Zend Framework应用程序。编辑视图脚本时,我希望IDE提供代码完成/自动完成 <?php echo $this->form... 您真正可以做的唯一一件事就是使用变量类型提示,例如 <?php /* @var $form Zend_Form */ $form = $this->form; 因为您使用的是Aptana Studio,而不是PDT,所以我将添加到我在上面发布的评论中(作为回

我正在使用AptanaStudio 3(基于Eclipse构建)编辑我的Zend Framework应用程序。编辑视图脚本时,我希望IDE提供代码完成/自动完成

<?php echo $this->form...

您真正可以做的唯一一件事就是使用变量类型提示,例如

<?php
/* @var $form Zend_Form */
$form = $this->form;

因为您使用的是Aptana Studio,而不是PDT,所以我将添加到我在上面发布的评论中(作为回答)

Aptana Studio中的正确语法为:

/**
 * @var Foobar 
 */ 
$obj; // You have to call the variable here (redundant call...)
$obj-> // will code assist the FooBar functions.
那个多余的调用是一个交易破坏者(IMHO),所以我正在努力获得额外的支持,比如@Phil的答案中建议的PDT特殊@var语法)

在任何情况下,为了向后兼容,Studio的下一版本都将支持这两种方法


希望这能有所帮助

恐怕Aptana Studio 3目前已无法提供这种支持。尽快修好它。
/**
 * @var Foobar 
 */ 
$obj; // You have to call the variable here (redundant call...)
$obj-> // will code assist the FooBar functions.
/* @var $obj Foobar */
$obj-> // will code assist the FooBar functions.