How to: Replace and Find Next

Answered

When I have the Find & Replace bar visible, there is a button "Replace" that will replace the currently selected occurrence and find the next one. How do I press this button with a keystroke or a menu item?

In other text editors I am accustomed to being able to quickly Find & Replace (⌘R) a particular phrase, with Find Next (⌘G) to skip, and Replace and Find Next (⌘ ???) to replace and skip to the next occurrence.

See screenshot for more details.

0
4 comments

Alt+P should do the trick I believe.

1
Avatar
Permanently deleted user

Brilliant! That works.

How did you discover that key combination? I don't see anything in any menu or keymap configuration related to "Find" or "Replace" that would have given me Alt-P.

0

It's called "mnemonics" I believe, when you press and hold Alt PyCharm underline some character in button labels. If you press the corresponding letter holding Alt the given action will be executed.

0
Avatar
Permanently deleted user

That's very useful to know Pavel. Have a great day!

0

Please sign in to leave a comment.