views:

213

answers:

2

I must say I really like the new code analysis with VS 2010, I have a lot of areas in my code where I am not using CultureInfo.InvariantCultureand code analysis is warming me about this.

I am pretty sure I want to use CultureInfo.InvariantCulturewhere ever code analysis has detected it is missing on Convert.ToString operations.

Is there anyway to get VS to automatically fix warnings of this type?

+1  A: 

I don't think you can do that with Visual Studio but Resharper 5 has a Structural Search and Replace functionnality that could work for that.

madgnome
+2  A: 

You cannot do this in VS Code Analysis but CodeIt.Right performs similar analysis (only on source code) and includes auto corrections with every rule. Give it a try!

sergeb