Extract Property Field Renaming Issue


The property refactory tool would be great if only it didn't
force the renaming of the variable names.
The fact that it forces me to change all _xyz fields to xyz
realy means that I rather use the VS default refactoring tool
since it leaves my variable names as they are.
What makes it worse is that when the tool renames the fields
it doesnt refactor the code but just renames the declaration.
I end up with dead names all over the code if those field
have already been used.
Also I cannot edit the new variable names and move to
the beginning of the name (via arrow keys or home key when
in edit mode) since the tabel exits edit mode then.


FeydRauth wrote Jan 9, 2009 at 8:26 AM


I will introduce field name changing as an optional setting, so it not update your fields and not introduce 'dead code'.

There are actually no plans to update all appearances of given field inside the whole source code. It is because Visual Studio code model does not support enumeration of elements on the function level. And doing that by myself with own parser will introduce more problems than solutions.

  • Feyd

wrote Jan 9, 2009 at 8:26 AM

FeydRauth wrote Mar 5, 2009 at 7:33 PM


There is a new checkbox on Extract Property form.
You can disable with that the naming convention, so variable names will not be changed.
Could you please verify that solution if it sits you needs ?
Then please close that issue.

  • Feyd

wrote Mar 5, 2009 at 7:33 PM

wrote Jun 24, 2009 at 12:53 PM

wrote Feb 13, 2013 at 11:15 PM