VB.NET and CSharp Refactoring

misc_vol4_008

I sent out the following tweet last week:

“Where’s the refactor menu option?!  Oh, wait.  This is VB.NET, they don’t have that feature.”

Almost immediately, I got responses.  The most helpful was from @RoryBecker letting me know about CodeRush XPress by Devexpress.com

This tool does way more than I was immediately looking for and it is free.

Instead of just allowing me to promote a block of code to a method it will:

 


  • Add parameters to your methods and update all the calls to that method for you.
  • Promote variables to parameters
  • Promote local variable to member variables (and rename to your member variable notation, ie _variableName or m_variableName)
  • Remove parameters and update all the calls to that method for you
  • Combine nested conditionals
  • Compress if/then/else to ternary
  • Variable declaration help.
  • Promote blocks of code to methods
  • Convert blocks of code to anonymous methods

The list goes on and on.

And it is all free if you own Visual Studio.

There is, of course, a paid version that does even more. 

The only real downside to a tool like this is that you have to learn a completely new way of programming to be really efficient using it.  But I think that’s a really small price to pay considering the efficiency you’ll receive.

Check it out

http://www.devexpress.com/Products/Visual_Studio_Add-in/CodeRushX/


Other Related Items:

Regular Expressions CookbookRegular Expressions Cookbook

Whether you're a novice or an experienced user, Regular Expressions Cookbook will help deepen your understanding of the tool. You'll learn powerf... Read More >

All Purpose NetAll Purpose NetThey are specifically designed for koi, surface skimming, and general all-purpose use. Heavy duty aluminum construction, telescoping handle to 6-1/2 . Soft fish safe nylon netting. Sure-grip handle. Aluminum & Nylon Mesh.
Tandem Net Violation TeeTandem Net Violation Tee

Front reads: "Jump Back". Back reads: "If you're close enough to read this you must've committed a net violation!" 100% heavyweight preshrunk cotton. Adult unisex cut. Available in White.

If you're new here, you may want to subscribe to the mailing list to get notifications of new post and a virtual tour of past topics. Thanks for visiting!

Related Post

One Response to “VB.NET and CSharp Refactoring”

DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor