Enable Search box within the Advanced Editor.
When in Advanced Editor in the Power Query Editor, if you pressed Ctrl-F a search box would open to help you find text within it.
David Cornwell commented
Yes please. I regularly have to copy my M code out into Visual Studio Code, then use ctrl-F there, make the changes and then copy it back into the Advanced Editor.