**Problem** Whenever I create a new project, the `Set Build Commands` dialogue is populated with the standard Geany build commands. For example `Compile: g++ -Wall -c "%f"`.
All my projects use the same build tools, which are more elaborate than the standard ones. I use explicit `make` commands for compiling single files as well as building the entire project. Configuring the dialogue in exactly the same way for each new project is time-consuming.
**Geany manual** The [Build menu configuration]( https://www.geany.org/manual/current/index.html#id154) section in the manual seems to suggest that by placing a `[build-menu]` section in` filetypes.cpp`, then custom entries for the `Set Build Commands` dialogue can be configured to be the same for all new projects. However, this does not happen.
**My Current Workaround** I have made a template for the `[build-menu]` section. When I create a new project, I copy the` [build-menu]` section to the `newproject.geany` file.
**Request** It would be convenient if there was a way to use a template to populate the build commands dialogue at the point of project creation.
**My System** ``` ~$ geany -V geany 1.29 (built on 2016-11-16 with GTK 2.24.31, GLib 2.50.2)
~$ uname -a Linux debian-deskside 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u5 (2018-09-30) x86_64 GNU/ ```
section infiletypes.cpp, then custom entries for the Set Build Commands dialogue can be configured to be the same for all new projects. However, this does not happen.
Settings in the user filetypes files are not copied to projects, they will be used if there are no settings in project to override them, they show in the project properties build tab as greyed and can be overwritten to create a setting in the project that hides the filetypes setting. So if your new project file has no settings in the build section it should use the filetypes file settings.
The filetypes dependent commands are of course only used if the file is the right type. For filetype independent commands the settings are taken from the user `geany.conf` if there is no setting in the project file.
BTW project files can of course be just copied, so you can create them from a "template" with the normal filesystem functionality.
github-comments@lists.geany.org