feature request: turn parameters into named parameters

example

foo(a,b,c)
should be turned into
foo(apple = a, banana = b, citrusfruit = c)

since the plugin can already do it for boolean parameters, this shouldn't be hard to add. it is very useful for big case classes or methods with many parameters

0
6 comments
Avatar
Permanently deleted user

Hi, Dennis!
It's a good suggestion, I'll implement it. You can follow it here:
https://youtrack.jetbrains.com/issue/SCL-9177

0
Avatar
Permanently deleted user

Sorry, I didn't check, but it is already implemented quite a while ago. It can be invoked as an intention action on the argument list of a method call.

0

you're right :O
i never read the label because it was so long, that's why i missed it

0

Hi!

Really interested in this for Python and IntelliJ. 
Although this thread seems to suggest it is already an existing feature, I can't seem to find it. Would it be possible to ask for more explanations on how to use this? It would save me DAYS!

 

Thank you!

0
Avatar
Permanently deleted user

Ariel The original question was about Scala plugin. You may add a feature request for PyCharm here:
https://youtrack.jetbrains.com/newIssue?project=PY 

 

0

@...

Not me buddy, you tagged the wrong guy somehow...

0

Please sign in to leave a comment.