SublimeCodeIntel in Sublime Text 3

Update: Forget about SublimeCodeIntel and use the new CodeComplice package instead.

There is now a Sublime Text 3 compatible version of SublimeCodeIntel, thanks to the hard work of Germán M. Bravo (aka Kronuz). I had a job getting it to correctly index my project files though. I’m posting here what I did, in the hopes it’ll help someone else out.

1. Use the development branch

I’m not using the Package Control version of SublimeCodeIntel (I’ve looked at the version numbers and they are the same, but I couldn’t get it to work). Instead, I’m using a Git checkout of the development branch.

In the Sublime Text menu, go to Preferences -> Browse Packages. From this directory I ran the command:

git clone -b development

2. Clear your codeintel cache

Your codeintel cache probably needs clearing if, like me, you’ve had older versions of SublimeCodeIntel installed.

To do this, quit Sublime Text then go to your home directory and delete the entire .codeintel directory (eg. on OS X this is at ~/.codeintel). If you have a config file in there that you’ve made changes to, back it up first.

3. Fix the language-specific config

This appears to have been the key problem for me. Inexplicably, SublimeCodeIntel’s default config disables project scanning for PHP and JavaScript files. Why? Who knows.

To fix it, open the Sublime Text menu and go to Preferences -> Package Settings -> SublimeCodeIntel -> Settings – Default. At the bottom of this file are language-specific settings for Python, JavaScript, and PHP.

Do not edit this config directly. Instead copy its contents completely and paste it into your user settings (Preferences -> Package Settings -> SublimeCodeIntel -> Settings – User). Then delete the PHP and JavaScript settings from the bottom, or at least change the codeintel_scan_files_in_project settings to true.

4. Be patient

When you first begin typing a function name or other entity that triggers codeintel, the status bar will show you that the initial scan is taking place. I’ve noticed that this status message disappears before scanning is actually complete, or it’ll state that scanning is complete when it’s not. Be patient, and it will get there eventually.

8 replies on “SublimeCodeIntel in Sublime Text 3”

  1. Thanks for this. This actually got SublimeCodeIntel working for me it seems. :) I had given up on it.

  2. Thank you so much!!! I couldn’t get it to work before and had to stay on Sublime v2…


  3. Thanks! This worked for me too. FYI I couldn’t find the language specific configuration you referred to, but not having it didn’t seem to be a problem :D

  4. Thanks for this post! I didn’t even see the option to configure the settings when I installed SublimeCodeIntel via Package Control. Steps 1 and 3 did the trick for me.

  5. AWESOME JOB! This works for me and as a result I posted a link to this page on two SublimeCodeIntel bug reports on (mine and another man who was also lost and confused).

Comments are closed.