What complex refactoring features do you wish there were?
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.)
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.
- Move this method to library XYZ
- Add the reference and using needed to make (this class reference/method call) work
精彩评论