Keeping same parameter names when creating a method

When R# 4.1 suggests creating a method when it encounters a call to an undefined method, it creates a method with parameters different that the ones in the caller. How can I have R# keep the names the same?

2 comments

I'm seeing the same behavior, although ReSharper does include the original
names in the tooltips so I can select them from the list.

"abdu" <no_reply@jetbrains.com> wrote in message
news:21216161.112281220659248697.JavaMail.jive@app4.labs.intellij.net...

When R# 4.1 suggests creating a method when it encounters a call to an
undefined method, it creates a method with parameters different that the
ones in the caller. How can I have R# keep the names the same?


0

I don't know what criteria it's using for choosing the parameters. If my caller uses a name such as 'UserName', it creates a method with 'name'. So why not 'username' with whatever casing it chooses based an a preset rule. userName, or UserName or username? But just 'name' is incorrect. I always have to go back and edit all the parameter names. R# is all about me not having to do this kind of work.

0

Please sign in to leave a comment.