News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Project wide replace without opening all files?

Started by Tobi, November 12, 2008, 09:13:38 PM

Previous topic - Next topic

Tobi

Is there a way in Code::Blocks to turn off project wide replace opening all files in which it does replacements?

I couldn't find this in the settings, sorry if I missed it :-)

If this isn't possible yet then this is a feature suggestion again :P

ollydbg

you mean : let the code::blocks only do replacements in opened files?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Tobi

No, I mean, now when I do project wide replacement, C::B open alls files in which it does replacements. (I presume so you can undo?)

I want it to not open any files, just do the replacement without opening the file in the editor.
If I want undo I restore backup or revert using my version control system :-)

Is this possible?

ollydbg

sorry, I still can't understand what's you means.

First, you  can right click on the tab, and select "close all" to close all tabs.

Quote
If I want undo I restore backup or revert using my version control system
what does this sentence mean?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Jenna

Quote from: Tobi on December 17, 2008, 12:36:33 PM
No, I mean, now when I do project wide replacement, C::B open alls files in which it does replacements. (I presume so you can undo?)

I want it to not open any files, just do the replacement without opening the file in the editor.
If I want undo I restore backup or revert using my version control system :-)

Is this possible?

As far as I know: no.

But what about a feature request or even better creating a patch ?
The user should be able to chose if he/she wants to force replacement without to (visibly) open the files and of course be warned that an undo is impossible then.

Quote from: ollydbg on December 17, 2008, 01:55:28 PM
sorry, I still can't understand what's you means.

First, you  can right click on the tab, and select "close all" to close all tabs.

Quote
If I want undo I restore backup or revert using my version control system
what does this sentence mean?

"Close all" or "Close all other" does what it says: closing all files and that's normally not wanted, even if the user just did a "Replace in files".

The second means that Tobi uses a backup and/or a version control system to be able to restore damaged files/filesystems (either by hardware or user errors) in (mostly) any cases.

ollydbg

Thanks, Tiger  :D , I understand the meaning now.
Thanks for your explanation.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.