PHPStorm Ci4 Live Templates (Snippets)?? |
(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?
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. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(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.
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. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
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. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(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
Update 11-20-2020
Just a few other things to add . Assed: dbforge constants time paths almost all database stuff. Same link to download. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
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. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(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?
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. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |