IDE parameters ?

Is there some way to save the project parameters in IDE ?

Now, when I open a project, IDE loads the parameters it has used last time.
I have built something for Arduino Nano, so there are the Nano parameters, when I open a project for NodeMCU or Arduino Mega.
Every time I build something, I must copy the parameters in my project book to copy them back to IDE by hand.

Not very professional, if I may say.

There should be a way to save the parameters to the same folder, where the .ino -file sleeps. And it should happend automatically.
Or the parameters should be possible to save as #include clauses to the ino itself -automatically and so that you can modify them with your own little hands.

The same way IDE should check librasy and conf files first from the ino folder.
for example I made changes to SoftwareSerial configuration and now I must make and remake it every time I change the project, where I use SoftwareSerial.

(I have been working with uP projects for over 30 years)

I use the Geany editor and I have written this simple Python program to compile and upload programs using the Arduino command line. As you will see I include the settings, such as board and port, in comments at the top of my .ino file

...R

mistofeles:
Is there some way to save the project parameters in IDE ?

No. It's not possible with the standard Arduino IDE, though it has been requested from time to time over the years. The Arduino developers have expressed some interest in adding this sort of feature. If you submitted a pull request adding this feature, I'm sure they would be willing to consider merging it. You can see the previous discussions on this topic in the following links and the links that web off of them:

https://groups.google.com/a/arduino.cc/forum/#!msg/developers/GD8SOD1zAz8/Zi-SL7RiAAAJ

The Arduino Web Editor does already have this functionality.

mistofeles:
The same way IDE should check librasy and conf files first from the ino folder.
for example I made changes to SoftwareSerial configuration and now I must make and remake it every time I change the project, where I use SoftwareSerial.

It's not clear what you mean by that. Please explain.

There should be a way to define the board type in the code before compilation.
It can be also handled in separate file in the project folder including the settings now under the 'Tools' tag

For example: (DO NOT COPY, NOT WORKING CODE AS 20may2024)
#define card "LOLIN(WEMOS) D1 mini"
#define Erase Flash: "Only Sketsh"
#define Serial Port Speed "74880"

I am using many kind of cards with many kind of special settings even during the same session and many Arduino IDEs open at the same time.
Checking all the settings every time you compile something takes time and is annoying.

Hi @mistofeles. The Arduino IDE developers are tracking the request for the addition of this feature here:

If you have a GitHub account, you can subscribe to that thread to get notifications of any new developments related to this subject:

screenshot of Subscribe button


:exclamation: Please only comment on the GitHub issue thread if you have new technical information that will assist with the resolution. General discussion and support requests are always welcome here on the Arduino Forum.


For now, if you aren't bothered by working from the command line, you might be interested in the related "build profiles" feature of the "Arduino CLI" tool:

https://arduino.github.io/arduino-cli/latest/sketch-project-file/#build-profiles