User forums > Using Code::Blocks
Auto Save?
tasdev:
Hi Everyone
New user here! Is there a setting to automatically save any modified files when doing a compile or make?
I am using a recent nightly - July 14 - on debian Linux. I also hope to use this environment on Windows (currently Codewarrior) and Mac (currently XCode and Codewarrior) one day.
Cheers
David
Pecan:
--- Quote from: tasdev on July 22, 2006, 02:05:09 pm ---Hi Everyone
New user here! Is there a setting to automatically save any modified files when doing a compile or make?
I am using a recent nightly - July 14 - on debian Linux. I also hope to use this environment on Windows (currently Codewarrior) and Mac (currently XCode and Codewarrior) one day.
Cheers
David
--- End quote ---
For nightly builds or SVN versions, files are automatically written to disk before compiling.
There is also an AutoSave plugin to save files on a user timed basis.
johnfemiani:
I did not get the point of Pecan's respose. I would like the same feature as tasdev; When I press the 'build' button I want that to trigger the IDE to save all modified files. Visual studio does this and that is a very convenient feature. Upon switchin to C::B I have found myself scratching my head about why I cant fix a syntax error, only to realize that it had been fixed and not saved, so the compiler was looking at an out-of-date file. Autosave is nice but I cant _continually_ autosave. I currently have it set to autosave every 5 minutes, but that doesn't really fix my problem.
John
Biplab:
--- Quote from: johnfemiani on September 03, 2007, 03:05:18 am ---I did not get the point of Pecan's respose.
--- End quote ---
What Pecan said is simple. C::B saves all the files to disc before compiling.
--- Quote from: johnfemiani on September 03, 2007, 03:05:18 am ---I would like the same feature as tasdev; When I press the 'build' button I want that to trigger the IDE to save all modified files. Visual studio does this and that is a very convenient feature. Upon switchin to C::B I have found myself scratching my head about why I cant fix a syntax error, only to realize that it had been fixed and not saved, so the compiler was looking at an out-of-date file. Autosave is nice but I cant _continually_ autosave. I currently have it set to autosave every 5 minutes, but that doesn't really fix my problem.
--- End quote ---
Can you specify the version you are using?? Because nightly releases have this feature.
Please note that once all the project files are saved to disc, the build process is started. If you edit your files while the build process is active, it won't be saved while compiling and the active build process will use the last saved file instead.
johnfemiani:
--- Quote ---Can you specify the version you are using?? Because nightly releases have this feature.
--- End quote ---
I use SVN4413.
--- Quote ---What Pecan said is simple. C::B saves all the files to disc before compiling.
--- End quote ---
Visual studio saves ALL modified files, but C::B only saves the ones that are in the project. Sometimes header files come from a different project, or may not be added to the project at all. In my case I imported a project which referenced header files from another location which I had to modify. A quick-fix is just to add all of the other headers to the project, but it would make sense if C::B saved all modified files rather than just the ones that are a part of the active project.
John
Navigation
[0] Message Index
[#] Next page
Go to full version