![]() ![]() If you use phpStorm I really recommend investing a little time to get to know Live Templates, they can speed up your work significantly when used efficiently. phpStorm will understand that this is meant to be a location where, after inserting the template, the mouse cursor should jump to so that you can start typing. So any time I need a File DocBlock I type: phdfd and that’s it!Īnother great thing about Live Templates is that they support placeholder locations (variables) that you can define by inserting a string surrounded by dollar signs ($). ![]() phpStorm will insert your code fragment of choice there and you did not have to copy-paste or switch context. When you need one of those in your editor all you have to do is press the shortcut key Ctrl+J, type the name of the abbreviation (of course there is auto-completion) and press ‘enter’. These templates allow you to define code snippets and assign an abbreviated name for them. Luckily phpStorm offers such a functionality using Live Templates. Of course this was too much effort for me so I wanted a quick way to add these DocBlocks without having to switch context. Hey, thats a great start Now we just need to make them all SMART. Download: CodeIgniter 4 - Live Templates for phpStorm. Anytime I add a new file, I have to open another existing sourcefile, copy the File DocBlock and paste it into the new file. (11-19-2020, 02:55 PM) InsiteFX Wrote: Ok, here are the new Live Templates all of the Query Builder methods are in it. For phpDocumentor I have the strict rule to apply a File DocBlock on the top with the necessary legal information such as copyright, license information and where to find the homepage. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |