CodeIgniter & PhpStorm - Autocomplete plugin? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: CodeIgniter & PhpStorm - Autocomplete plugin? (/showthread.php?tid=61799) |
CodeIgniter & PhpStorm - Autocomplete plugin? - mrtomtom - 05-18-2015 Hi there, Just wondering if anyone knows of a CI plugin for PHPStorm that supports autocomplete etc for CI3? Many thanks, Tom RE: CodeIgniter & PhpStorm - Autocomplete plugin? - RogerMore - 05-26-2015 He Tom, I'm using PhpStorms and haven't found one yet. There is a trick to give you some sort of autocomplete feel using the following header code in you're controllers / models. Code: /** Mind that this is voor CI 2.x.x. If you're using CI 3 you maybe have to change some class names. Hope this helps. Roger RE: CodeIgniter & PhpStorm - Autocomplete plugin? - Hobbes - 05-26-2015 when i was using the trial version of php storm i created a file in application/config called: autocomplete.php in it, yes i had the above but you can also add class declarations in this file as well, so after your property comments as above put stuff like this: PHP Code: class CI_Controller {}; it's works pretty good. Is it perfect? no, but like i said, works pretty good. RE: CodeIgniter & PhpStorm - Autocomplete plugin? - mrtomtom - 05-26-2015 Hey Guys, Ok thanks very much for your suggestions -- looks like some good work arounds, I will give them a go, hopefully now that CI is a bit more active they might add official support. How do you find PHPStorm in general? RE: CodeIgniter & PhpStorm - Autocomplete plugin? - Hobbes - 05-26-2015 I love Php Storm. My Preferred IDE, however i am as broke as a 3 dollar bill so cannot afford it. |