3

I'm not sure what to call it so I'm calling it hints. I notice that whenever I'm calling a function, and I hover over that line, little popup bubbles appear that show me the first comment in said function definition. Helps keep track of what that function does or the possible parameters.

But that doesn't always happen, just sometimes. I was wondering if there's a preference I could change so it always does.

Also, if I'm writing and I include or require a file, if that file has functions in it, I'd like it to be able to recognize the function I'm calling from that file and display hints. Is there maybe an option to point the editor toward the included file so it can do that?

And finally, it's looking like it won't detect functions/methods with hinting that are inside of a class. Any workarounds?

Thanks, I wonder if I'm missing a shortcut or something.

4

1 回答 1

4

我想知道是否有我可以改变的偏好,所以它总是如此。

代码约定API 目录智能感知设置可以提供帮助。

是否有可能将编辑器指向包含的文件以便它可以做到这一点?

转到 Edit=>Preferences=>Languages,然后在PHP或相关语言下添加文件路径。

最后,它看起来不会检测到类内部带有提示的函数/方法。任何解决方法?

使用PHPDoc/JSDoc来解决这个问题。

于 2012-06-06T18:18:46.943 回答