Thanks. That makes sense now. This is actually similar to how the Arduino Web Editor does it, except that the window can't be left open while you do other things.
One tip you might find helpful: Normally if you have multiple sketches open in the Arduino IDE, you'll notice that when you change the board/port/etc. on one window, it automatically changes on the others too. In the event that you want to have a separate setting for each sketch, you can run multiple instances of the Arduino IDE by starting the IDE multiple times or opening the sketches by double clicking on the sketch file. Each of those instances can have its own settings and even its own Serial Monitor/Serial Plotter window. When you open sketches via File > Open, File > Examples, File > Sketchbook, those are under that IDE instance and they share the same settings. That works on Windows. I haven't gotten around to testing it on Linux yet and I don't own a Mac.