Komodo Edit Function and Require autocompletion

半世苍凉 提交于 2019-12-10 10:15:09

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/10857062/komodo-edit-function-and-require-autocompletion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!