Page 1 of 1

Find/replace for current procedure only

Posted: Tue Nov 14, 2023 3:24 am
by BarryG
I'd love to have an IDE find/replace option for the current procedure only. Quite often I need to change something in a large procedure (several screens long, and I'm in the middle of it), and it's a pain to manually scroll up to the start of it (and lose my cursor position) and then select it all while scrolling back down to the end of it; just so I can tick "Search inside selection only". Thanks.

[Edit] Just had to search for a variable in a long procedure, and it wasn't there, so the cursor jumped way down else somewhere in my source to the first match. I know I can jump back with a hotkey, but it would be nice just to Find in the current procedure as well.

Re: Find/replace for current procedure only

Posted: Tue Nov 14, 2023 4:31 am
by AZJIO
like ctrl+m to select a block

Re: Find/replace for current procedure only

Posted: Tue Nov 14, 2023 5:02 am
by BarryG
I never knew about Ctrl+M, wow! That's a good tip. But it doesn't necessarily select all of a procedure's code (like when you're the middle of an If/Then block), so my request still stands.

Re: Find/replace for current procedure only

Posted: Tue Nov 14, 2023 5:11 am
by AZJIO
you can click the hotkey a second time to select the code to a higher level

Re: Find/replace for current procedure only

Posted: Tue Nov 14, 2023 5:19 am
by BarryG
Nice! But I have lots of nested blocks, and it changes the cursor position to the top of each new selected block. So my request still stands.

Re: Find/replace for current procedure only

Posted: Tue Nov 14, 2023 5:52 am
by Quin
+1