How to program multiple board models/com ports with IDE 1.6.3

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!

Instead of doing file/new or file/open from the IDE start a new instance of the IDE when you want to edit a second file. Each instance will retain its own port and board sessions, at least it does with 1.5.6-r2

Perfect, will do.

Thanks!