Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
FAQ: Search and Replace
Last updated at 1:37 pm UTC on 19 September 2005
How can I do search-and-replace?

The functionality is already there; it's just not obvious. To perform a "find and replace", you first do a "find" (cmd-f), then type in the replacement over the selection. You can then do a "do again" (cmd-j) to find and replace the next occurance, or (ctrl-j) to find and replace all remaining occurances. – Tim Olson

Tip: You do not have to perform a "find" for the "replace" to work. Just select a word you want to have replaced, overtype it with your new word, and hit (ctrl-j). Very handy for renaming variables. – Bert Freudenberg

Another tip: To indent multiple lines, select the carriage return of one line and replace it with a carriage return and tab. Hit (cmd-j) for each subsequent line you want to have indented. – Bert Freudenberg