Aptana不会为类中的函数生成phpdoc块 [英] Aptana won't generate phpdoc blocks for functions within classes

查看:66
本文介绍了Aptana不会为类中的函数生成phpdoc块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Aptana中,我以某种方式破坏了为类中的函数自动生成phpdoc注释的功能.它似乎只影响我当前的项目.

In Aptana, I have somehow broken the functionality to auto-generate phpdoc comments for functions within classes. It appears to only affect my current project.

通常,我可以在函数前的行上键入/**并按Enter键,Aptana将使用正确的@param值创建一个phpdoc注释,以此类推.出于某种原因,当我现在执行此操作时,Aptana会创建2条注释,其中一条在另一个.例如

Normally I can type /** on the line before a function and press enter, and Aptana will create a phpdoc comment with the correct @param values, etc. For some reason when I do this now Aptana creates 2 comments, one within the other. e.g.

/**
* /**
*
*/
*/
public static function getByLogin($loginID, $ip, $userAgent) {

}

如果我尝试对全局函数使用它,它将正常工作.它也适用于类变量和类本身.

It works normally if I try this for global functions. It also works for class variables and classes themselves.

推荐答案

我通过右键单击项目然后配置->添加php支持来解决此问题.我不明白如何删除php支持,或者不使用phpdoc如何在全局函数上工作,但现在已修复.

I fixed this by right clicking the project then configure -> add php support. I don't understand how php support got removed, or how phpdoc was working on global functions without it, but it's fixed now.

这篇关于Aptana不会为类中的函数生成phpdoc块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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