CodeIgniter Forums

Full Version: Code completion in PHPStorm for CI3 & Bonfire
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Does anyone know if there's a way/plugin to get code completion working in CI3 and bonfire projects in the PHPStorm IDE?
I don't know PHPStorm, but if it has a plugin Exuberant CTags then you can use that. Create tags with "ctags", and then use the PHPStorm IDE plugin to do code-completion based on the created ctags file.
You can try this. I have added it to CI3 and seems to work fine. I am using Eclipse Luna
http://www.web-and-development.com/codei...ocomplete/
(09-30-2015, 04:07 AM)slax0r Wrote: [ -> ]I don't know PHPStorm, but if it has a plugin Exuberant CTags then you can use that. Create tags with "ctags", and then use the PHPStorm IDE plugin to do code-completion based on the created ctags file.

Thanks for the suggestion, but looks like it doesn't support Exuberant CTags Sad

(09-30-2015, 04:08 AM)Martin7483 Wrote: [ -> ]You can try this. I have added it to CI3 and seems to work fine. I am using Eclipse Luna
http://www.web-and-development.com/codei...ocomplete/

Thanks.  I'm having a play with it now, although it's not looking like it's working out of the box.  Will have a bit more of a faff with it.
A quick google revealed this, have you tried it yet?
https://www.jetbrains.com/phpstorm/help/...words.html
This is what I use:
https://github.com/topdown/phpStorm-CC-Helpers

It works pretty well, but doesn't give 100% completion. Better than nothing though and works for 95% of things.
(09-30-2015, 11:47 PM)slax0r Wrote: [ -> ]A quick google revealed this, have you tried it yet?
https://www.jetbrains.com/phpstorm/help/...words.html

Yeah, that's the issue - it doesn't work out of the box with CI, because of all the 'magic mehods' or whatever you call them.
(10-01-2015, 02:23 AM)JayAdra Wrote: [ -> ]This is what I use:
https://github.com/topdown/phpStorm-CC-Helpers

It works pretty well, but doesn't give 100% completion. Better than nothing though and works for 95% of things.

I have used that in the past, but that was on CI2 projects. 

I just tried it on a CI3 project and it doesn't seem to work.  Part of that will be the change from Active Record to Query Builder but I'm also wonder if an update to phpStorm might also have broken it (I'm on 9.0.2).

Thanks for the suggestion anyway.
Hello,

I just have forked this repo and made a code completion working with CI3 cause I needed it.

It's available here : https://github.com/nicolas-goudry/CI-PHP...Completion

I'll update it if necessary, don't hesitate to comment, report "bugs" and other...

Seeya!
(11-22-2015, 05:39 AM)$this Wrote: [ -> ]Hello,

I just have forked this repo and made a code completion working with CI3 cause I needed it.

It's available here : https://github.com/nicolas-goudry/CI-PHP...Completion

I'll update it if necessary, don't hesitate to comment, report "bugs" and other...

Seeya!

Wonderful, thanks!