dotnet / dotnet/roslynator

Method signature refactoring suggestion.

Open
#147 1 comment 0 reactions 0 assignees View on GitHub
Area-Refactorings Feature Request
Dominant language
C#
Stars
3.5k
Forks
294
Avg merge
2h 30m
Merged PRs (30d)
4

Description

Greetings!

Here is an idea to make a handy method signature refactoring, so to introduce new method parameters. It may be suggested when user places cursor somewhere between existing arguments, or in close proximity to the parentheses, so to place a new parameter in that place. One has to anticipate such situations, like overridden methods update (probably with an additional warning, that may prevent accidental base class virtual methods refactoring), also there is an automatic placeholders population that will fill the default values at the changed method's call sites.

I haven't found any community-driven tools that offer such a functionality, which feels like a great omission. Also, will be happy to help out with this feature implementation if it makes sense for you, guys.

Regards,

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.