Looking for a text editor to swap all instances of two different strings in code

Multi tool use
Looking for a text editor to swap all instances of two different strings in code
I have a bunch of code that has many instances of "A" and "B"
I would like a simple text editor that can turn all of "A" into "B" and "B" into "A" with one step instead of using the replace function which takes 3 steps
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.