Applying batch code fixes (FixAll) across different scopes: document, project, and solution
In this section, you will learn how to apply batch code fixes to fix multiple instances of similar diagnostics across different scopes. We will apply the FixAll code fix for the Make uppercase
code fix in the default analyzer + code fix template project and fix multiple type names across the document, project, and solution scopes so they all contain upper case letters only. We will show you how to invoke a FixAll code fix from the editor light bulb, and then use the FixAll preview changes dialog to selectively choose the fixes to apply to your solution.
Getting ready
You will need to have Visual Studio 2017 installed on your machine to execute the recipes in this chapter. You can install a free community version of Visual Studio 2017 from https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&rel=15.
Additionally, you should execute the recipe Creating, debugging, and executing...