Вопрос

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.

Это было полезно?

Решение

I was wondering if there's a preference I could change so it always does.

Code conventions, API catalogs, Intellisense settings, or Macros can help.

Is there maybe an option to point the editor toward the included file so it can do that?

Goto Edit=>Preferences=>Languages, then add the file paths under PHP or the relevant language.

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

Use PHPDoc/JSDoc to workaround this.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top