dsmupo6631 2010-05-12 10:33
浏览 31
已采纳

如何在Eclipse中显示phpDoc注释

I wonder how I can make PHPDoc-comments visible in Eclipse on a project-wide basis. For the moment, it only works in the current, open file.

It would be super to be able to check out all the @params and descriptions that I have put in before each function, outside the function's own file.

Thanks a lot!

  • 写回答

1条回答 默认 最新

  • dongyi5570 2010-05-12 13:05
    关注

    If you have already documented your code elements via docblocks, then when you use those elements in your code, the hover popups feature of Eclipse will indeed show you what's in their docblocks. This doesn't require you to have the other file open, e.g. writing code in test.php that uses class Foo from foo.php... you're not required to have foo.php open in the editor in order for your Foo object in test.php to have hover popup docblock info visible.

    If such hover popups are not showing docblock info to you, then you might need to revisit your buildpath/includepath settings in your PHP project, particularly if the elements you're trying to use are actually defined in another project than the one you're working in.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 pnpm 下载element-plus
  • ¥15 解决编写PyDracula时遇到的问题
  • ¥15 有没有人能解决下这个问题吗,本人不会编程
  • ¥15 plotBAPC画图出错
  • ¥30 关于#opencv#的问题:使用大疆无人机拍摄水稻田间图像,拼接成tif图片,用什么方法可以识别并框选出水稻作物行
  • ¥15 Python卡尔曼滤波融合
  • ¥20 iOS绕地区网络检测
  • ¥15 python验证码滑块图像识别
  • ¥15 根据背景及设计要求撰写设计报告
  • ¥20 能提供一下思路或者代码吗