phpstorm Archives - Code Craftsman https://www.codecraftsman.us/ Tales from a Dev Dad Wed, 02 Nov 2022 02:45:54 +0000 en-US hourly 1 https://wordpress.org/?v=5.9.3 https://www.codecraftsman.us/wp-content/uploads/2020/08/cropped-code-craftsman-logo-32x32.png phpstorm Archives - Code Craftsman https://www.codecraftsman.us/ 32 32 How to create a reusable code template in PHPStorm https://www.codecraftsman.us/how-to-create-a-reusable-code-template-in-phpstorm/ Tue, 25 Oct 2022 04:37:36 +0000 http://www.codecraftsman.us/?p=660 JetBrains actually calls these Live Templates. They allow you to quickly insert a code template for any language and get prompted for filling optional variable names. The snippet is then bound to an abbreviation of your choice. There’s so many settings in PHPStorm, I’m not surprised if you didn’t know about the enormous number of Live Templates available to you out-of-the-box. They’re activated via a short abbreviation, then Tab or Enter. To access them, open the dialog at File > Settings > Editor > Live Templates. Here’s a list of the default categories: Just look at the collection of VueJS-based…

The post How to create a reusable code template in PHPStorm appeared first on Code Craftsman.

]]>