Autocompletion for method parameters
How can I do autocompletion for method parameters the same way as in Eclipse (using Tab)?
The difference is when I do autocompletion in Eclipse it put the parameters in and I can use Tab to jump to the next one (and avoid typing additional characters like " or ,).
Basically it's nice when the closing quote is inserted when I type the string value. But I don't see much benefit because I still have to type it when I'm done with the string just to go to the next function parameter.
Here is another example, what if I don't want to finish the statement by semicolon, but instead I want to chain another function call. In this case I have to type closing bracket (that has already been put for me by WebStorm).
I am probably missing something, but I wasn't able to find any documentation about this topic.
Thanks
Ivan
请先登录再写评论。
Hi there,
I guess you are talking about this... http://youtrack.jetbrains.com/issue/IDEABKL-6984
If not -- could please clarify it a bit for me (some basic screencast or couple of screenshots would be great)
Hi Andriy,
Partially it's what I'm talking about - this covers the part about using Tab to get outside of the closing bracket/quote zone.
The other part is switching between parameters in the method, that is done with Tab as well. Both of these features work together and the effect is improved performance.
I will record a video to demonstrate this and post it as soon as I can
Thanks
Ivan
Attachment(s):
TabInEclipse.mp4
Well .. PhpStorm definitely does not have such editing/entering mode. There are some tickets (that I know about) that request help in pre-filling function parameters using similarly-named variables (i.e. WI-18621 or WI-6000) .. but I do not remember anything like in your video (where Live-Template-alike placeholder is created)
The already mentioned ticket may cover all of it (at least I would think so). If not -- feel free to submit new ticket to the Issue Tracker (just check for any existing tickets first there as well as in IDEA and IDEBKL projects)
I created the issue Use Tab to switch between autocompleted method parameters
http://youtrack.jetbrains.com/issue/IDEA-128690
It has a dependency on Autocomplete for function / method arguments
http://youtrack.jetbrains.com/issue/WI-18621