Search code examples
intellij-ideapycharm

How to use "Replace in selection" in Pycharm


I am trying to understand how to reliably / consistently use the Replace in Selection in Intellij.

  • Highlight some text
  • Command-R for Find/Replace in file

The surprise is that the entire selected text is automatically thrown into the to-be-replaced entry field in the dialog:

enter image description here

My task is not that: it is to replace the single quotes inside that selected area with double quotes. What are the correct step to do that?

enter image description here

I do know I have been able to do this in the past: but uncertain of what were done differently. I believe Intellij-Idea exhibits same behavior. I am using 2019.2.X Ultimate for both products.


Solution

  • Oh I found it. It's a UI change in latest release. Pycharm app has changed from having a

    Replace in Selection
    

    checkbox - which worked great for me - to having an inscrutable tiny icon in the dialog:

    enter image description here

    By the way for keyboarders you can select this by hitting CMD-R again. At least they did preserve a way to do it by keyboarding.