pythonpycharm

What is the keyboard shortcut for "Replace All" in PyCharm?


I want to hit a shortkey and replace all in PyCharm. After I hit ctrl+R, I key in text to search and text as replacement. I need to click "Replace" / " Replace all". I currently move my hand to mouse and click the button, but I do it many times in a day. Anyone knows what is the shortkey? Thanks.

Here's the official document shows how to find and replace by click the button https://www.jetbrains.com/help/pycharm/2016.3/finding-and-replacing-text-in-project.html


Solution

  • ctrl+r by default (ctrl+shift+r for replace in all files).

    However if you are using a different keymap it maybe different you can check under settings (under keymap>main menu> edit> find> replace):

    enter image description here

    After you type the replacement word you can press enter to perform the default action (replace this occurance... ) or you can press ALT + the underlined letter on the button label (i.e., alt+a => replace all) to perform a different action.