I'm creating Visual Studio Extension and to implement one of its functionalities I need to perform advanced "Find and Replace" on the whole solution. It could work the same as Find and Replace (Ctrl + Shift + F) in Visual Studio, but I want to call it by code.
I was doing research on this topic, but most of the answers are about the function in Visual Studio itself. During my research, I have found in the docs. But implementing this function seems like a tricky way to do this.
What is the best way to implement such behavior?
You can use DTE.Find.FindReplace API.