Difference between #1 and #2 of
Eclipse PDT - code-hints, references and other goodies

Revision #2 has been created by qiang on Feb 18, 2009, 11:53:23 AM with the memo:

Syntax highlighting the code fragment
« previous (#1) next (#3) »

Changes

Title unchanged

Eclipse PDT - code-hints, references and other goodies

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

[...]
It will hint you on methods, fields and class constants, but won't know they type of object you receive when iterating over an array.

Eclipse parses phpDoc comments to find out about function parameter and returned value types, for descriptions and so on.

To make best use of it be sure to add phpDocs in you're code:
    
 
    

 
 
```php 
/**      * You'll see this when you get a drop-down      * with suggestions for completing the word      * and onHover on class name.      */     class Foo {           /**      * Description of a field.     * Be sure to add varType below to get you're code-hints.      * E.g. $aFoo->bar-> + alt+space will give you drop-down     * with varType's fields, methods and so on.     *      * @var varType Description of the field     */
 
    
*/
 
public $bar;           /**      * Description of baz     *     * @param $var varType [$var description]     * @return Foo     */      public function baz( $var ) {     return new Foo();     }
 
    }
}
 
}
 
```


Yii has great documentation in the source code allowing IDE to help fellow programmer a great deal.

## Howto
[...]
14 0
6 followers
Viewed: 41 090 times
Version: 1.1
Category: Tutorials
Tags: IDE
Written by: mindeh
Last updated by: Woil
Created on: Feb 18, 2009
Last updated: 13 years ago
Update Article

Revisions

View all history