How to associate boards to sketches

Hi, i'd like to know if i can associate or attach a specific Arduino Board to a sketch.... Because for some projects i use 2 Arduino at the same time and i'd like when i open a sketch it automatically set a specific board in the IDE...
Thanks you

I am sure that you can't do what you are asking for. However, you can open two or more instances of the IDE and have different boards and ports associated with them. To do this start the IDE, set the board and port then start another instance of the IDE (not file/new or file/open) and set the board and port for that instance. The board and port of the IDE instance is displayed at the bottom/right of the IDE.

Uh sin...
However thank you

:slight_smile:

UKHeliBob:
I am sure that you can't do what you are asking for. However, you can open two or more instances of the IDE and have different boards and ports associated with them. To do this start the IDE, set the board and port then start another instance of the IDE (not file/new or file/open) and set the board and port for that instance. The board and port of the IDE instance is displayed at the bottom/right of the IDE.

I would like open a sketch and the IDE automatically set the correct board because it is maybe define at the top of the sketch... but no problem.
Thanks for the answer anyway

If you are working with 2 Arduinos at the same time, even if they are the same type of board, then you will find using 2 instances of the IDE very useful even if it is not quite what you would like in an ideal world.