editsmalltalkpharo

How to replace a for example #test symbol in one method?


I would like to use Pharo GUI to replace a symbol #test within one method. How do you do that? I could not find a tool to use that for.

For example:

overview

send: #test
sendSecond: #test

I would like to have it changed to:

overview

send: #production
sendSecond: #production

How to do that within Pharo?


Solution

  • I found it today by accident.

    1. In Pharo you have to have to right-click on the method's body.

    2. In the pop-up menu you have to have to then select Find....

    3. Now window appears that is called not Find but Find & Replace, where you can perform this simple search & replace.

    I wish they could name it the pop-up menu so one can find it on first try.