User forums > Using Code::Blocks

Auto Save before Build

(1/2) > >>

sipickles:
Hi,

Is there any way to get C:B to save all open files before running a build, when the BUILD button is pressed?

I get errors I've fixed, coz I haven't pressed SAVE then BUILD. Nice to just press BUILD :)

Thanks

Si

thomas:
Code::Blocks saves all files that are part of the current project when you run a build.

It does not save any other files that you may have incidentially open (and possibly modified). No, this will not be implemented.

The solution is to add all files that belong to the project to the project. Not only does this make your workflow more comfortable (as you can open the files from the project manager), but it also tells the IDE that those files are important to the project.

Story:
Is there anyway to get it to autosave the project itself when building? Often times I'll work on a project for a while, adding files, changing settings, etc. And then when I restart my computer, none of the changes to the project were saved. I have to go back and readd all the project files and it is very annoying.

Alpha:

--- Quote from: Story on November 23, 2011, 10:18:01 pm ---Is there anyway to get it to autosave the project itself when building?

--- End quote ---
Not exactly (at least that I know of), but you can save/backup project (and source) files at regular intervals with the Autosave plugin.

mark1977:

--- Quote from: thomas on November 11, 2007, 02:06:47 pm ---Code::Blocks saves all files that are part of the current project when you run a build.

--- End quote ---

This does not seem to be happening for me. I only have one file, it is part of the  project, and I have to save it every time before I build (with F9).

Navigation

[0] Message Index

[#] Next page

Go to full version