Aptana won't generate phpdoc blocks for functions within classes

放肆的年华 提交于 2019-12-02 05:43:34

问题


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.


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/2031680/aptana-wont-generate-phpdoc-blocks-for-functions-within-classes

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