I cannot make the macro find / replace work, but I can give you two things that can solve your problem:
If this is only a few places / times, you need to do this to find / replace has a memory of earlier replacements (down arrow in the search / replace fields).
Write a plugin (yes, seriously, itβs not at all difficult) to do it for you. I was surprised how easy it was, although the documentation could be improved.
And the bonus way to do this, I just thought:
- Open the file in the Emacs entry, replacing the macro (or write the elisp function to do this), so I would have done it until I found out how easy it was to create Idea plugins.
source share