I am creating a project utilizing multiple Arduinos. I currently am programming a Uno and Leonardo to talk to each other via Wire library. So I am constantly switching between multiple Arduino IDE windows, changing the code for each device and re-compiling and uploading. However, each time I switch between windows I have to re-select the board model and port (somehow this is globally changed in all IDE windows each time it's selected) before compiling and uploading.
Is there a way to force each window of the Arduino IDE to keep the selected board and port? Or is there a way to specify board and port in the code itself?
Thanks!