Aptana 不会为类中的函数生成 phpdoc 块

发布于 2024-08-18 00:02:15 字数 341 浏览 1 评论 0原文

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

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

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

}

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

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.

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

谁与争疯 2024-08-25 00:02:15

我通过右键单击项目然后配置 -> 修复了此问题添加 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.

年少掌心 2024-08-25 00:02:15

我想我在 Aptana 2 中看到了这个功能,但它从 Aptana 3 中被删除了,我不知道为什么。

i thinks i saw this feature in Aptana 2 but it was remove from Aptana 3, i don't know why.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文