I often find that I am writing something stupid:
String.Format("{1}: {0}", reason, message);
or something similar, but with a lot more holders in place.
Is there automatic refactoring in Resharper to change the order of place owners and arguments? I tend to ruin the display if I try to reorder manually.
Obviously, the above example is trivial. What I do in reality often writes something like:
String.Format("{0}.{2} = {1}.{3} AND {0}.{4} = {1}.{5} AND {6}.{7} = {1}.{8}", table1Alias, table2Alias, col1A, col2A, col1B, col2B, table3Alias, col3C, col2C);
and thought about what would be great if I could move table3Alias to the front alongside other aliases.
(Resharper 7.1.3)
c # resharper
Jonny
source share