What complex refactoring features do you wish there were?

219 views Asked by At

Tools like CodeRush and Resharper offer lots of simple refactorings, such as 'Rename Variable'. But if you could have any refactoring feature at all (no matter how complex), what would it be?

(I know, everyone wants a 'make program perfect' refactoring, but let's be realistic here.)

3

There are 3 answers

2
djdd87 On

I wouldn't particularly like a specific feature. I'd prefer improvements on the existing built in functions. I.e. I'd like to declare how my code is refactored, i.e. naming conventions and variable positioning. As an example, I'd like my get/set properties to be as follows:

public string Foo
{
   get
   {
      return foo;
   }
   set
   {
      _foo = value;
   }
}
private string _foo;

But visual studios does it in some crazy way I cant stand and that doesn't meet our coding standards.

It'd be good if every existing refactoring method didn't feel as though it'd been written by a different person with their own ideas.

0
Jason Williams On
  • Move this method to library XYZ
0
Jason Williams On
  • Add the reference and using needed to make (this class reference/method call) work