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!
IDE Wish: Replace All Up To...
Re: IDE Wish: Replace All Up To...
Better: Replace all within the selected text.
Re: IDE Wish: Replace All Up To...
There is a checkbox for that right in the Find/Replace dialogTomS wrote:Better: Replace all within the selected text.

quidquid Latine dictum sit altum videtur
Re: IDE Wish: Replace All Up To...
@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.
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.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
- Michael Vogel
- Addict
- Posts: 2798
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: IDE Wish: Replace All Up To...
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.
-
- Addict
- Posts: 1482
- Joined: Tue Feb 22, 2011 1:16 pm
Re: IDE Wish: Replace All Up To...
+1skywalk wrote:Have you considered adding a switch for just the text in a Procedure?
Also, a keyboard shortcut to select the entire procedure where the cursor is, would be fantastic.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
PureBasic: Born in 1998 and still going strong to this very day!
Re: IDE Wish: Replace All Up To...
...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 #.freak wrote:There is a checkbox for that right in the Find/Replace dialogTomS wrote:Better: Replace all within the selected text.
...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.)
-
- Addict
- Posts: 1482
- Joined: Tue Feb 22, 2011 1:16 pm
Re: IDE Wish: Replace All Up To...
What have you been smoking? The dialog box STAYS OPEN and the highlighted text REMAINS highlighted after a replace!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.
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.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
PureBasic: Born in 1998 and still going strong to this very day!
Re: IDE Wish: Replace All Up To...
Ah, yes. I was too quick to post...freak wrote:There is a checkbox for that right in the Find/Replace dialog
Yes it does (if you use "Replace All")MachineCode wrote:The dialog box STAYS OPEN
No it doesn't.MachineCode wrote:highlighted text REMAINS highlighted after a replace!