I assumed there would be a configuration file somewhere, but looking at the various folders in my Zend Studio installation did not give me the results I was hoping for. A search for Eclipse.org for Content Assist yielded
So, I think the βrealβ way to add a new Content Assist Context is to extend Eclipse.
Alternative: using templates
Another way to get annotations is to add them via Templates. Follow these steps:
- Go to window> Settings> PHP> Editor> Templates.
- Click "Create", fill out the dialog and confirm everything to return to your editor.

Now the template is configured when in the context of a PHP comment. Go to UnitTest DocBlock and type @ . If Content Assist does not open automatically, press Ctrl + Space . Now you need to select @depends .

Confirm how you confirm any other offer. This should write @depends and place the cursor right next to it (so you can insert a test name).
Gordon
source share