Is there a way to autocomment a function signature in Aptana Studio 3?
For example, when I enter this trigger : /***.
It will autogenerate this :
/***
@param string $test
@param string $test2
@return array
*/
for this function :
function test($test,$test2)
{
return array();
}
Someone made a snippet that generate the whole things :
/***
@param
@return
*/
function functionName()
{
}
Here is the original snippet from https://stackoverflow.com/users/1015975/dimitar-mihaylov
snippet 'Declare Function' do |s|
s.trigger = 'docf'
s.scope = 'source.php'
s.expansion = '/***
*
*
* @param
* @return
* @author $6
* @copyright ' + Time.now.strftime('%Y-%m-%d') + '
*/
function ${1:functionName}($2)
{
$0
}'
end