Author Topic: History in source code  (Read 7946 times)

Offline pacorrop

  • Single posting newcomer
  • *
  • Posts: 6
History in source code
« on: July 07, 2009, 02:01:34 pm »
Hi all,
I've been working with C::B for a while. It's fantastic, great job!

Here's my question:
before C::B, I tried to develop my C++ applications in Eclipse + CDT (strong-weight and slow IDE :S). The only thing I think Eclipse's better than C::B is in the local history.

Eclipse takes every changes on your source code, and saves them on the hard disk. When you modify anything and you realize that you wrote wrong code, you can revert to the 'good' source code. I think C::B hasn't this feature, but I would be pleased if anybody of you could confirm it to me.

I lost a couple of times source code beacuse of this 'lack'... any ideas for this? CVS, SVN are too awkward for me. Manual backup? I'm forgetful :P What a mess!!!!

Thanks in advance, regards!
« Last Edit: July 07, 2009, 02:03:24 pm by pacorrop »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: History in source code
« Reply #1 on: July 07, 2009, 02:08:55 pm »
Not the same, but might be helpful:

"Settings -> Environment... -> Autosave"

And of course you can use a version control system for your sources.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: History in source code
« Reply #2 on: July 07, 2009, 02:22:05 pm »
CVS, SVN are too awkward for me. Manual backup? I'm forgetful :P What a mess!!!!
Not offending, but with this attitude you'll sooner or later get into serious trouble. Believe me - even Eclipse (and the local history) won't protect you from serious data loss that way.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline pacorrop

  • Single posting newcomer
  • *
  • Posts: 6
Re: History in source code
« Reply #3 on: July 08, 2009, 10:05:03 am »
Thanks both of you.

I'll make a daily reminder for doing this :P

Cheers :)