2019.1 Global find-and-replace interactive seems to be missing like was available in 2016.2

After switching from PhpStorm 2016.2 to 2019.1, I've attempted a find-and-replace globally (project-wide) and I want to do it interactively occurrence-by-occurrence where I have the option to click a key to replace or a different key to skip and in the process not have to use the mouse to navigate to the next proposed replacement--PhpStorm would take you through all of the occurrences in all files and you would choose to replace or not. This technique, for me at least, was huge in enabling me to refactor code across the whole project. I can't find how to achieve this in 2019.1. Please tell me how, and if it can't be done, add to this post to cast votes to the PhpStorm team that this is sorely missing if indeed it is missing. Thanks.

P.S. Actually, not keys but buttons in a dialog that let you...

"replace" , "skip", "replace all in this file", "skip to next file"

0
4 comments

This modal dialog has been removed: https://youtrack.jetbrains.com/issue/IDEA-200853

What you can use now is:

  1. Ctrl+Shift+R
  2. Fill the search and replace fields
  3. Ctrl+Enter
  4. Alt+Enter/Alt+R for replace, Alt+A to replace all, arrows to skip and navigate
0
Avatar
Permanently deleted user

Thank you for your reply--it was very helpful. I tried it out and it worked as you described. One annoyance that has been introduced that I would classify as a feature request (of a feature that used to exist and should not have been removed) is: in addition to having the button that lets you replace the current occurrence, have a button that lets you skip the current occurrence and move on to the next one. The only choices currently available in 2019.1 is "replace" the current occurrence or "replace all". It is quite odd that "skip" current occurrence is missing. The 2016.2 version of PhpStorm for that reason is still better for interactive search-and-replace since we now don't have the "skip" button. Thank you once again.

0

You can use "exclude" or "remove" actions against the items you want to skip:

"Exclude" just strikes out the occurrence & is ignored during processing.

"Remove" action completely removes the occurrence from the list & processing (for the current Replace in Path invocation).  

0
Avatar
Permanently deleted user

Thank you for pointing that out. I did not realize there was a context menu available for those items. I may be a creature-of-habit, but I must share that I very much miss not having to use mouse and menu's to pre-identify what I do not want to replace during mass-string-replacement operations. I miss the button "replace all in this file" and the button "skip" that was available in 2016.2. PhpStorm would just take you from occurrence-to-occurrence and you had all of these options available to you in the current file for the current occurrence. That way was what I would consider truly interactive and that seems to have been lost in the new UI.

0

Please sign in to leave a comment.