This doesn't work for me. I'm on a mac, RStudio 2023.06.1 Build 524. Even if I first select some code in which I want to do my replace operation, my script still jumps to instances of the query that are outside of my selected region as I type.