Page 1 of 1
IDE Wish: Replace All Up To...
Posted: Thu May 26, 2011 3:18 pm
by Tenaja
I often reuse local variable names, such as Counter. I wish there was a way to "Replace All" but have it stop at a certain line number. This would allow changing all local vars in just one Procedure, but not all of them. Sometimes you use that Counter var many times in one Proc, and this would make renaming it a lot faster.
Thanks!
Re: IDE Wish: Replace All Up To...
Posted: Thu May 26, 2011 3:32 pm
by TomS
Better: Replace all within the selected text.
Re: IDE Wish: Replace All Up To...
Posted: Thu May 26, 2011 6:29 pm
by freak
TomS wrote:Better: Replace all within the selected text.
There is a checkbox for that right in the Find/Replace dialog

Re: IDE Wish: Replace All Up To...
Posted: Thu May 26, 2011 6:42 pm
by skywalk
@freak
Have you considered adding a switch for just the text in a Procedure?
This way I don't have to select stuff before doing the search and replace.
Re: IDE Wish: Replace All Up To...
Posted: Thu May 26, 2011 7:32 pm
by Michael Vogel
A shortcut (Alt+S) could be fine, as Alt+R should set the replace check and jump into the text field, Alt+A should do the same like pressing the 'replace all' button etc.
Re: IDE Wish: Replace All Up To...
Posted: Thu May 26, 2011 10:40 pm
by MachineCode
skywalk wrote:Have you considered adding a switch for just the text in a Procedure?
+1
Also, a keyboard shortcut to select the entire procedure where the cursor is, would be fantastic.
Re: IDE Wish: Replace All Up To...
Posted: Sun Jun 05, 2011 3:45 pm
by Tenaja
freak wrote:TomS wrote:Better: Replace all within the selected text.
There is a checkbox for that right in the Find/Replace dialog

...this checkbox is all but useless, and totally sucks, since the dialog box disappears after the first search. If you want to continue, you have to re-highlight all of the same text. This useless "feature" actually highlights the need for Search Up To Line #.
...now, if the dialog box did NOT disappear,
and the highlighting
remained, the tone of this post would be entirely different!!! (And yes, a dialog box like this can be implemented; Notepad++ is a nice example.)
Re: IDE Wish: Replace All Up To...
Posted: Sun Jun 05, 2011 3:49 pm
by MachineCode
Tenaja wrote:...this checkbox is all but useless, and totally sucks, since the dialog box disappears after the first search. If you want to continue, you have to re-highlight all of the same text.
What have you been smoking? The dialog box STAYS OPEN and the highlighted text REMAINS highlighted after a replace!
I just re-tested it to make sure I wasn't mistaken, and yes, I could change the matches in the hightlighted text over and over, without the box closing or the highlights being lost. Don't know why it ain't working for you.
Re: IDE Wish: Replace All Up To...
Posted: Sun Jun 05, 2011 7:40 pm
by TomS
freak wrote:There is a checkbox for that right in the Find/Replace dialog
Ah, yes. I was too quick to post...
MachineCode wrote:The dialog box STAYS OPEN
Yes it does (if you use "Replace All")
MachineCode wrote:highlighted text REMAINS highlighted after a replace!
No it doesn't.