Search code examples
c#visual-studio-2022

In Visual Studio 2022 is there some way to automatically accept a large block of suggestions?


I'm getting a bunch of messages saying

Message IDE0090
'new' expression can be simplified

I would like to have the suggested correction made to all of them without having to manually do them one by one.

I'll backup first, so I'm not worried about it messing up my project.


Solution

  • Does this link not exist in Visual Studio 2022?

    fix all occurrence


    Update Now that I am using 2022 community, this option still exists:

    fix all occurrence in 2022