It’s not possible in Visual Studio at the moment.
You can vote for this feature:
https://developercommunity.visualstudio.com/content/idea/580810/case-preserving-search-replace.html
I usually end up opening Sublime Text, Copy & Paste the code there, perform the case-preserving replacements there and Copy & Paste back to Visual Studio.