Is there a way to alter Zend Studio PhpDoc preferences?

Posted by Tower on Super User See other posts from Super User or by Tower
Published on 2010-01-07T12:50:13Z Indexed on 2010/05/04 10:08 UTC
Read the original article Hit count: 175

Filed under:
|

Hi,

I'm trying out Zend Studio trial and I have a few things on my mind related to PhpDoc.

If I have the following code:

public function sum($a, $b)
{
 echo $a + $b;
}

and then I start typing /** in the front of the function and press Enter, Zend Studio automatically makes the following text:

/**
 * [cursor]
 * @param unknown_type $a
 * @param unknown_type $b
 */

However, I want to customize this so that it also includes @return void automatically since there's no return inside the function. Is there a way to do this? And what about things like @access? It's obviously "public".

Another thing I want is that when I create a new file and I use the code templates with ${user}, it will use my Windows account, but I want it to use something else - is there a way to specify this "user"?

© Super User or respective owner

Related posts about zend-studio

Related posts about phpdoc