I have this problem too. Developing for Arduino, Tiny, ESP, Teensy and Core 328...
I wrote my application to start the Arduino with the right settings.
How it works:
- Once you start your Arduino IDE, select the board and set all preferences.
- Launch application
- Click on a sketch (or import one) and select the preferences you want to save - application will try to auto-detect the right preferences
- If you click "save preferences", it will create a ".preferences.txt" inside your project folder
- from now, every time you start the application, it will merge the current preferences with your custom preferences and start the Arduino IDE
Note: If you start with the custom settings, any changes made on your IDE will not be saved as the preferences will be generated in a temporary folder. I can improve this feature.
Edit: The application can be downloaded from the GitHub repository:
https://github.com/Adrianotiger/ArduinoIDE_Launcher