Autocomplete Arguments?

Is there a way to have PhpStorm automatically fill in variables named after a class's constructor arguments or a method's arguments? That way I could then simply replace each variable with a desired value, or, alternatively, add variable declarations before the use of the method / instantiation of the class. This would be much easier than having to move my cursor to the name of the method / class and pressing F1.

Thanks in advance for your help.

EDIT: Is there a way to mark a thread as a question retroactively? I only saw the check box after I hit submit.

EDIT EDIT: And... I figured out how to mark it as a question. Do I sound new? ;)

3 comments

Hi there,

Is there a way to have PhpStorm automatically fill in variables named after a class's constructor arguments or a method's arguments?

No. But there are tickets for such functionality on Issue Tracker (separate ticket per language)

This would be much easier than having to move my cursor to the name of the method / class and pressing F1.

Ctrl+P (View | Parameter Info) ?

0

Not currently possible. Please see http://youtrack.jetbrains.com/issue/WI-2820 and related tickets. Note that you can hit Ctrl+P to view method parameters info (View | Parameter Info)

0

Ah, ok. Hopefully they'll implement that feature soon.

Thanks much for the quick help! That 'View -> Parameters' shortcut is going to make things much easier. =)

0

Please sign in to leave a comment.