Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the shortcut for "replace all" in pycharm

Tags:

python

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

like image 398
Lisa Avatar asked Dec 29 '16 18:12

Lisa


People also ask

What is the shortcut for replace all?

If you want to find and replace text in a Word document, use the key combo Ctrl + H. That will bring up the “Find and Replace” dialog box. Then type in the word or words you're looking for and what to replace them with. Then click the “Replace All” button.

How do I select all codes in PyCharm?

Press Ctrl+Alt+Shift+J to select all case-sensitively matching words or text ranges in the document.

How do I find shortcuts in PyCharm?

Configure keyboard shortcuts PyCharm includes several predefined keymaps and lets you customize frequently used shortcuts. To view the keymap configuration, open the Settings/Preferences dialog Ctrl+Alt+S and select Keymap. PyCharm automatically suggests a predefined keymap based on your environment.


1 Answers

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 (ie alt+a => replace all) to perform a different action ...

like image 176
Joran Beasley Avatar answered Oct 13 '22 15:10

Joran Beasley