Creator: Clone/Copy dozens of run configurations?
-
When I upgrade to a new version of Qt, I add build configurations for the new version, but keep the old one around, in case I want to compare behavioral changes or so.
The thing is...when I create the new build configurations, they come with empty run configurations. I have almost 50 executables, and manually clicking through them to set the correct working directory and (in some cases) command line arguments is...tedious.
Is there any way to simply clone the original run configurations from my previous version of Qt? Or to somehow mass-edit run configurations, so I can set things up more quickly?
I sometimes mass-edit the .user file, but this is hard in this case: The keys for the working directory don't yet exist, so a simple search-and-replace is not possible.
-
@Asperamanca
Hi. I don't know any of the details you are talking about, but with 50+ to do doesn't this sound like a little script job? Are you needing to change a.user
or other text file?sed
or similar? Assuming you are using Linux rather than Windoze! -
Windows :-)
I don't feel like starting with an XML parser, build up a model, and traverse that model to update my configurations, especially since the .user file is an internal file, so formats could change with any Creator version.
But it sounds like there is no convenient built-in way to handle many configurations in Creator... -
You are talking about the configuration in QtCreator's
Projects -> Build/Run
tab/pane, right?
At least in QtCreator itself you can clone configurations... maybe check the QtC source how it's done? -
@JonB said in Creator: Clone/Copy dozens of run configurations?:
Assuming you are using Linux rather than Windoze!
Still on Windows I suggest to use
sed
. It is easily installed by Scoop (https://scoop.sh) or Chocolatey (https://chocolatey.org). (I'm using Scoop.) -
@SimonSchroeder
sed
etc. does not exist on Windows --- it's simply cheating!