Description
This is a request for enhancement. I hope you will consider it...
I am developing code for multiple types of Arduino and sometimes I work on two different Arduinos at the same time (in two Arduino IDE windows on the one PC). When I set the board type to, say, Due in one project and Nano in the other project, when I save them and load them later, the IDE does not remember which board was used for each project and just selects the most recently used board type. It is essential for many projects to use the correct choice of board architecture for each project.
So my suggestion is to enable the user to choose to remember the board type and save this choice inside the project file. So that when we open a project that has been saved in this way, the IDE automatically sets the correct board type. I envisage this could be done by having a Tick box [check box] for "Remember board type when saving project" in the preferences, or something the user can tick (or untick) before saving (to add or to remove the board type from the saved .ino file).
I appreciate that many of the examples will work with any board type, so I am not suggesting to change the format of these examples or any existing .ino files - only to add an extra section when a user saves their project if they choose to do so. This extra section, if it exists, will set the board type, and if it doesn't exist, the IDE does what it currently does and uses the board type that was last used.
Thanks for considering this.
Brian