I work on several vastly different projects on different hardware, and every time i open up a different source file, i have to re-select the board, cpu and port for that project...
Perhaps it would be nice to have a method where a specifically formatted block,of text/xml could be used to automagically preset the environment when the file is loaded into a blank instance of the IDE.
(i say this because i also use Notepad++, and may have several source c,h,cpp files open, but the first that is opened with the IDE should puck up the platform details...
Even if it was an extract of the boards.txt data...?
or a similarly named project.ino / project.cfg file...?
Just a thought