Welcome Guest, Not a member yet? Register   Sign In
PHPStorm Ci4 Live Templates (Snippets)??
#11

(This post was last modified: 11-18-2020, 08:24 PM by PwrSrg.)

(11-18-2020, 05:17 PM)InsiteFX Wrote: Aw, I see mine is different I' m creating the auto complete using live templates.

Your creating them using xml.

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?

Attached Files Thumbnail(s)
   

Bridging the gap between Technical and Creative

VASCOsoft Web Studio   |   AllMyLinks

Reply
#12

(This post was last modified: 11-19-2020, 04:33 AM by InsiteFX.)

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 )
Reply
#13

(11-19-2020, 04:32 AM)InsiteFX Wrote: 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.

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.

Bridging the gap between Technical and Creative

VASCOsoft Web Studio   |   AllMyLinks

Reply
#14

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 )
Reply
#15

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 )
Reply
#16

(11-19-2020, 02:55 PM)InsiteFX Wrote: 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.


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

Bridging the gap between Technical and Creative

VASCOsoft Web Studio   |   AllMyLinks

Reply
#17

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 )
Reply
#18

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 )
Reply
#19

(11-19-2020, 02:55 PM)InsiteFX Wrote: 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.
Where is this file imported from?
Reply
#20

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 )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB