Auto Code Completion in PHPDevShell

article_Screenshot_3.png

As we get lazier (or older) we appreciate the value of code completion. PHPDevShell does support code completion but at this stage only in Netbeans. Because PHPDevShell uses allot of lazy loading very few other IDE's understand it. Yet our favorite IDE does. So if you really want code completion, you will have to get used to Netbeans.

Code completion works with the whole core, so anything will auto complete. To make autocomplete work on plugins you just called, you will need to add a simple comment;

		/* @var $crud crud */
		$crud = $this->factory('crud');

		/* @var $spam spamAssassin */
		$spam = $this->factory('spamAssassin');

		// Now typing $spam->... will autocomplete.

In the two examples above both vars $crud and $spam will auto complete.

PHPDevShell © 2010 - All rights reserved.