PHPStorm Ci4 Live Templates (Snippets)?? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: PHPStorm Ci4 Live Templates (Snippets)?? (/showthread.php?tid=78001) |
RE: PHPStorm Ci4 Live Templates (Snippets)?? - PwrSrg - 11-18-2020 (11-18-2020, 05:17 PM)InsiteFX Wrote: Aw, I see mine is different I' m creating the auto complete using live templates. No, i'm also using Live Templates. When you export them out of PHPStorm, that is exactly what it gives you. Did you import them into your environment to test and compare them? RE: PHPStorm Ci4 Live Templates (Snippets)?? - InsiteFX - 11-19-2020 Oh, yep that's how I' m doing them now. The download above gives you all of those by just clicking ctrl+j and selecting. RE: PHPStorm Ci4 Live Templates (Snippets)?? - PwrSrg - 11-19-2020 (11-19-2020, 04:32 AM)InsiteFX Wrote: Oh, yep that's how I' m doing them now. OK, good. For the record, you don't even have to click ctrl-j to open the Live Template dialog, you can just start typing the abbreviation, and it will be included in the autocomplete as well. Let me know when you have the new ones done and I would like to review them. Thanks. RE: PHPStorm Ci4 Live Templates (Snippets)?? - InsiteFX - 11-19-2020 Yes, I know that I was referring to the file templates you can highlight say libraries and then right click select new then from file templates. Those are the ones in my download above they give you the complete classes. I have the live templates from the above all done I'm now adding all the db and query builder live templates. Half way through the query builder ones. Try to finish it all up tomorrow. RE: PHPStorm Ci4 Live Templates (Snippets)?? - InsiteFX - 11-19-2020 Ok, here are the new Live Templates all of the Query Builder methods are in it. I will update this later here. Download: CodeIgniter 4 - Live Templates for phpStorm. Let me know what you think. RE: PHPStorm Ci4 Live Templates (Snippets)?? - PwrSrg - 11-19-2020 (11-19-2020, 02:55 PM)InsiteFX Wrote: Ok, here are the new Live Templates all of the Query Builder methods are in it. Hey, that's a great start! Now we just need to make them all SMART. For example, my route template knows to name the URI and the Destination at the same time, with the proper casing, and includes variables for the controller class, method, and params, all with informative default placeholders. Also, my templates automatically match their Class name to their File name, as they should. My model template has variables for all of the most common table configuration options. And I always make sure my templates all have their proper END points. Keep up the good work, and let me know when you are finished! Thanks! -Sergio RE: PHPStorm Ci4 Live Templates (Snippets)?? - InsiteFX - 11-20-2020 Update 11-20-2020 Just a few other things to add . Assed: dbforge constants time paths almost all database stuff. Same link to download. RE: PHPStorm Ci4 Live Templates (Snippets)?? - InsiteFX - 11-21-2020 Another new update so download from above the link will not change. Added: CSP Table Parser response Let me know if you find anything missing. RE: PHPStorm Ci4 Live Templates (Snippets)?? - ysarsilmaz - 12-06-2020 (11-19-2020, 02:55 PM)InsiteFX Wrote: Ok, here are the new Live Templates all of the Query Builder methods are in it.Where is this file imported from? RE: PHPStorm Ci4 Live Templates (Snippets)?? - InsiteFX - 12-06-2020 You need to turn of PhpStorm's sync settings from the little cloud icon in the bottom right hand status bar, click the icon then Disable Sync. Copy the unzipped file to: C:\Users\Your_name\AppData\Roaming\JetBrains\PhpStorm2020.3\templates Change your_name to yours. You may need to change this depending on your phpStorm version in the link PhpStorm2020.3 to yours. Turn PhpStorm's sync settings back on, click Enable Sync and choose get settings from account in the dialog box. |