Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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"?

share|improve this question
up vote 1 down vote accepted has good documentation, including Code Templates Preferences for Zend Studio.

zend preferences

Because it's eclipse based, you may find useful tips at places like:

  1. Getting started with Eclipse code templates
  2. PHP Developer Tools template idea
  3. Using Eclipse Templates
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.