I usually run teensy_reboot.exe from the Teensyduino binaries to trigger a restart and automatic code upload. Doesn't work unless the serial port is closed though!