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? ;)
Please sign in to leave a comment.
Hi there,
No. But there are tickets for such functionality on Issue Tracker (separate ticket per language)
Ctrl+P (View | Parameter Info) ?
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)
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. =)
This can be done now by enabling a smart option in the settings of the editor and ensuring DOCBLOCKs are present
see https://youtrack.jetbrains.com/issue/WI-2820#focus=Comments-27-5466832.0-0