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

查看:28
本文介绍了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.

通常我可以在函数前的一行中输入/** 并按回车键,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天全站免登陆