UNO initilize after start serial monitor

Rather that using the IDE serial monitor you can use a serial terminal emulator like PuTTY that does not reset the board.
No need to mess with hardware and you can still upload programs.