Creating a DocBlock for a method in Aptana Studio

I am using Aptana Studio 3 to develop PHP. I know that there is a fragment for generating PHPDoc blocks for classes and methods (type doc, press Ctrl + space and the corresponding fragment is inserted). The problem is that it can only be used for new methods, doc_f snippet inserts something like this:

/** * undocumented function * * @return void * @author */ function functionName() { } 

Therefore, whenever I have a method that I want to document, I still have to manually insert all the data regarding the arguments and return value. I remember that in PDT (Eclipse), which I used for a long time, there was a convenient hotkey (ctrl + shift + j IIRC) that automatically filled all these PHPDoc parameters for the selected element, but it does not work in Aptana. Is there a better way to generate DocBlocks for PHP in Aptana Studio, other than manually entering it for each undocumented method and class?

+4
source share
1 answer

I use NetBeans with php and it automatically enters your variables, returns and throws. Just type / ** and hit enter. The code in the method must be completed so that it fully generates the returned data and throws it away.

0
source

All Articles