ymdred16
ymdred16

Reputation: 104

Can I use common code snippets in PhpStorm 2019.1?

Are there any common code snippets (like for, foreach, if-else etc) in PhpStorm 2019.1 or any plugins that bring this functional? Seems weird not to have them.

Upvotes: 1

Views: 405

Answers (1)

lena
lena

Reputation: 93728

Sure. Please check Live templates, Settings | Editor | Live Templates, PHP, for example. You can use predefined templates or create your own, by either saving your code snippets as templates or creating templates manually in Settings | Editor | Live Templates. See also https://blog.jetbrains.com/webstorm/2012/10/high-speed-coding-with-custom-live-templates/

Upvotes: 1

Related Questions