Autocomplete arrow for objects

Hi, 

when you write $this in class context and then press '-' PHPStorm will autocomplete it into an arrow '->' and offer methods and parameters of the object. 

Is it possible to get the same behavior with any object? ie '$database-' would be autocompleted into '$database->'

It's tiny change that does a lot of difference. 

It's especially infuriating when combined with '$this' : $this->database-load (First arrow gets autocompleted, second doesn't, forcing me to go back and fix it). This inconsistency makes me always forget that I need to write it out the second time. 

Making live template for this is not really a way to go as it would require extra key stroke all the same. 

0

Please sign in to leave a comment.