Quick question about find / replace in selection

41 views
Skip to first unread message

ian barres

unread,
Oct 29, 2021, 7:02:30 AM10/29/21
to BBEdit Talk
Is there a way to find and replace a word only in the selected text in BBEdit? For example, if I have a large document, is that possible to select only one function which the matching words will be replaced in? 

Would it be "Use Selection for Find" or "Use Selection for Replace"? I looked in the manual and that seems to be what I want but I couldn't get it to work. I'm quite new to the editor, sorry if this seems too trivial.

Thanks for any help in advance
Ian


Patrick Woolsey

unread,
Oct 29, 2021, 9:16:28 AM10/29/21
to bbe...@googlegroups.com
On 10/29/21 at 5:37 AM, barre...@gmail.com (ian barres) wrote:

> Is there a way to find and replace a word only in the selected text in
> BBEdit? For example, if I have a large document, is that possible to select
> only one function which the matching words will be replaced in?


Yes :-) and in order to do this, please:

* make the desired selection, then

* bring up the Find window (Command-F),

* enter the desired search & replace strings (or patterns),

* turn on the "Selected text only" option, and

* click "Replace All".



Regards

Patrick Woolsey
==
Bare Bones Software, Inc. <https://www.barebones.com/>

Reply all
Reply to author
Forward
0 new messages