Creating my own autocomplete plugin / rule?
Not sure the corrent name for it, but this is what I would like to achieve:
I type this code:
foreach($array_values[space]
PhpStorm kicks in after the space, notices that my variable ends with "s", and then autocompletes my foreach statement like below:
foreach($array_values as $array_value_id => $array_value){
[cursor here]
}
Would this be possible in PhpStorm as is (ie: somewhere in settings), or would it require a plugin?
Thanks heaps!
Dave
Please sign in to leave a comment.
This will require writing a plugin.
You can try to create a live template for "foreach"... like zen coding. You can do this from Settings > Live Templates. Is this what you needed?