Option for live template

Hi, i wanna ask is there are an option for a live template to make something like that:

Abbreviaton: "ifnotempty"

And when i type:

ifnotempty * 3

Result:

if ( !empty($a) && !empty($a) && !empty($a) ) {

}

 

To be something like html emmet:

li*3 to make 3 list items.

0
1 comment

Unfortunately, there is no "multiplier" option available for Live Templates feature:

https://www.jetbrains.com/help/phpstorm/using-live-templates.html

 

Could be a nice request though:

https://youtrack.jetbrains.com/newIssue

0

Please sign in to leave a comment.