I have search the existing question here, but haven't get the specific detail that I need, so I'm asking my own question.
I use Ubuntu Linux (current version 9.10) and use Eclipse Galileo PDT to develop web application using CodeIgniter. I can make the autocomplete worked for CodeIgniter's libraries and model using this comment in my controller file:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
*
* @author donny
* @property CI_Loader $load
* @property CI_Input $input
* @property CI_Output $output
* @property CI_Email $email
* @property CI_Form_validation $form_validation
* @property CI_URI $uri
* @property Firephp $firephp
* @property ADOConnection $adodb
* @property Content_model $content_model
*/
class Content extends MY_Controller {
function Content()
{
parent::MY_Controller();
//load model
$this->load->model('content_model');
//...
}
/**
*
* @return void
* @access public
*/
function index()
{
//...
}
}
Using the comment like this in the controller file, the Eclipse can do autocomplete when I wrote partial code like $this->content_model->g
. After I type g
, I can press Ctrl+Space
and Eclipse will show any methods in the content_model
class.
Using eclipse is quite a burden, since it need a lot of RAM. I often must kill the firefox, since running it both will make RAM full and system started to use swap space. I know that I should add more RAM (currently I have 2x1GB), but it's not a viable solution right now.
Reading other's question and having try numerous editors and IDE in the past, I'm considering to try a free version of Komodo Edit.
My question here:
- Can I make Komodo Edit to do autocomplete like I have currently with Eclipse PDT? Can you show me how to do it, or will Komodo Edit can use the 'pseudo property comment' that I currently have in all my Controller?
- Do you have any other suggestion of Editor and IDE that I can use in Ubuntu and have the autocomplete for CodeIgniter?
Thank you in advance.
Update:
Right now I'm trying Komodo Edit 5.2.4 (latest version at this time). I open my existing project, and I can click the function name that will open the file where that function is defined. A cool build-in function.
When I use it for work, here is the functional I missed from PDT:
- In Eclipse PDT, I have write a template that enable me to create a new controller and model quickly. I can code the template using
{controller_name}
and then when I use it, Eclipse allow me to replace the template code with actual text. I have tried template feature in Kodomo Edit, but it's not the same. Can you help me with Kodomo, or another IDE with similar feature?
That's all for now, I'll update more while I working using it.