Create Method argument name generation

Hi everyone,

is there a way to automatically populate argument names with something more meaningful than arg1, arg2 etc. when using the Create Method tool?

 

What I'd like to have as default names is a better default name such as the ones suggested when using the Rename tool, so I don't have to manually rename all arguments every time I automatically create a delegate, for example:

I couldn't find any relevant parameter in the Settings menu.

Any help is greatly appreciated!

0
1 comment

Hi there,

Unfortunately, right now there is no setting or template in Rider that makes the Create Method quick‑fix automatically choose better parameter names instead of arg1, arg2, etc.

The engine does try to infer names from simple arguments (e.g., DoSomething(customer)DoSomething(Customer customer)), but when it can't infer a good name it falls back to generic argN.

There is an existing YouTrack issue that you can vote for and track: RSRP-456340

Thanks.

0

Please sign in to leave a comment.