Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Provides completions for CodeIgniter devs working with Sublime Text 2.
Branch: master

Merge pull request #7 from FrancoisH/patch-3

Spelling: $this->db->update()
latest commit 2cc702eaa0
@martinredola authored

Sublime Text 2 Completions for CodeIgniter

Ever get sick of typing things like $this->load->view or $this->security->sanitize_filename when building your CI sites and apps? Well I've gathered together all the functions from the CodeIgniter User Guide Class Reference so you no longer have to.


I'm guessing you've already got a copy of Sublime Text 2.


Download the PHP-codeigniter.sublime-completions file up above, and drop it in your ~/.config/sublime-text-2/Packages/PHP/ folder. Should work immediately.

Windows & Mac

Download the PHP-codeigniter.sublime-completions file up above, and drop it to %appdata%\Sublime Text 2\Packages\PHP\ folder. Should work immediately


Just start typing and up will pop the CodeIgniter functions in question.

By default Sublime Text only triggers on characters, so if you’re trying to auto-complete by typing “$this” it isn’t going to work. Instead, try typing “this” and you should see the list pop up.


To make $this work, add the $ character as a trigger in your Sublime Text preferences / settings:

"auto_complete_triggers": [ {"selector": "text.html", "characters": "<$"} ],

The < is there by default for HTML purposes, and the $ is added for PHP.

What's missing

I've included every CodeIgniter function I could find, but if I've missed anything out, I'd appreciate it if you let me know.

Something went wrong with that request. Please try again.