Ability to save/recall board/com settings in sketch...

I have a system something like that. I use the Geany text editor and I have a short Python program to call the Arduino IDE for compiling and uploading.

At the top of my program file I have comments like the following which are used by the Python program to give instructions to the Arduino IDE.

// python-build-start
// action, verify
// board, arduino:avr:uno
// port, /dev/ttyACM0
// ide, 1.6.3
// python-build-end

...R