Sublime text is a powerfully simple text editor that makes coding part of the development easier than it once was. Autocomplete for PHP, HTML, CSS Javascript is handled easily by Sublime text. But as I am writing, there is no native support for Codeigniter.
Do you have to manually type the following lines all the time?
$this->load->library('codeonion'); $this->load->view('codeonionview', $data);
If you suddenly can’t remember the name of a library or you have just started learning Codeigniter and want to explore all commands, you might probably have to find an IDE with autocomplete facility.
Fortunately for us, there is an amazing package for sublime text that allows Autocomplete. In this post, I will show you how to set up Sublime Text to have autocomplete facility for Codeigniter.
- Download Sublime Text 2 Completions for CodeIgniter and Unzip.
- There will be a file named PHP-codeigniter.sublime-completions.
You will have to copy this file to two locations (to be sure). One is the sublime packages folder and the other is as according to the Github page. - First, open sublime text and go to Browse Packages as shown below:
Sublime text browse packages A folder with the following path will open:
C:\Users\USERNAME\AppData\Roaming\Sublime Text 3\Packages
or simply
…\Sublime Text (n)\Packages
- Copy the (PHP-codeigniter.sublime-completions) file and paste the following folder which you can find using:
..\Sublime Text (n)\Packages\User
Next, open up Sublime Text and you will be able to use Autocomplete. for example, see the following image.

That’s it! You now have autocomplete facility within Sublime Text. Please note that with changes to codeigniter in future, this post might become obsolete. If for some reason, it does not work, then let me know in comments.
I hope this guide helped you.
Please Share and Comment
10 responses to “Codeigniter 2.20 – Autocomplete in Sublime Text”
it.s awesome post… I am so helpful for your review..
can we use this package for sublime text 3?
Can anyone please help me for codeigniter autocomplete code hint for text editor (brackets) which is the adobe product much better and fluent for codeing of web development.
I prefer to use Codelobser for my CodeIgniter projects: http://www.codelobster.com/codeigniter.html
Thanks for the comment! Wow! That is a great addition to the sharing of knowledge among us developers!
Your comment is awaiting moderation.
Could you please write a tutorial for me?
I need a Codeigniter tutorial that can search multiple words from multiple database tables?
looking forward to your reply
Thanks for the comment. I will write that tutorial for you. Thanks for taking interest 🙂
thanks, work fine on ver 3047
Thanks for the comment. I am glad it helped. Let me know if you would like me to write a tutorial for you. I cover CodeIgniter 3.0.1+ and Android 😛
Could you please write a tutorial for me?
I need a Codeigniter tutorial that can search multiple words from multiple database tables?
looking forward to your reply