CodeIgniter Forums
Code completion in PHPStorm for CI3 & Bonfire - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Code completion in PHPStorm for CI3 & Bonfire (/showthread.php?tid=63140)



Code completion in PHPStorm for CI3 & Bonfire - jhob - 09-30-2015

Does anyone know if there's a way/plugin to get code completion working in CI3 and bonfire projects in the PHPStorm IDE?


RE: Code completion in PHPStorm for CI3 & Bonfire - slax0r - 09-30-2015

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.


RE: Code completion in PHPStorm for CI3 & Bonfire - Martin7483 - 09-30-2015

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/codeigniter-and-eclipse-autocomplete/


RE: Code completion in PHPStorm for CI3 & Bonfire - jhob - 09-30-2015

(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/codeigniter-and-eclipse-autocomplete/

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.


RE: Code completion in PHPStorm for CI3 & Bonfire - slax0r - 09-30-2015

A quick google revealed this, have you tried it yet?
https://www.jetbrains.com/phpstorm/help/basic-code-completion-completing-names-and-keywords.html


RE: Code completion in PHPStorm for CI3 & Bonfire - JayAdra - 10-01-2015

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.


RE: Code completion in PHPStorm for CI3 & Bonfire - jhob - 10-09-2015

(09-30-2015, 11:47 PM)slax0r Wrote: A quick google revealed this, have you tried it yet?
https://www.jetbrains.com/phpstorm/help/basic-code-completion-completing-names-and-keywords.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.


RE: Code completion in PHPStorm for CI3 & Bonfire - jhob - 10-09-2015

(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.


RE: Code completion in PHPStorm for CI3 & Bonfire - _this - 11-22-2015

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-PHPStorm-Code-Completion

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

Seeya!


RE: Code completion in PHPStorm for CI3 & Bonfire - jhob - 11-23-2015

(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-PHPStorm-Code-Completion

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

Seeya!

Wonderful, thanks!