New CodeRush Plugin – Introduce Local (All Arguments)

The Motivation

I found this question on Stackoverflow

Essentially it breaks down to…

How can I refactor this….

IntroduceLocalAllArgumentsStart

…into this…

IntroduceLocalAllArgumentsEnd

… in a single step.

The Plugin

This plugin allows you to extract all arguments of a method to new locals which are then placed above the method call.

  • Place your caret on the call to the method whose arguments you’d like to extract.
  • Hit the CodeRush\Refactor key (Ctrl+` by default)
  • Choose “Introduce Local (All Arguments)
  • You’re done.

And the Result

IntroduceLocalAllArguments

Where can I get this wonderful plugin?

As usual, the source code and binary for this plugin are available on github

Like many others, this plugin is listed on the CodeRush Plugins Site.

Showcase Your Apps on DevExpress.com

Highlight your business app and share your development experiences with the DevExpress community. To include your app in our upcoming App Showcase, please forward an application screenshot to clientservices@devexpress.com and tell us which DevExpress products you currently use within your organization.
No Comments

Please login or register to post comments.