Actually I've wondered this too although everyone leaves it in TA/RA while changing it and some airports like Stansted say in the jepp brief to set it to 2000 before selecting Standby. From flying school though you got your hand chopped off by an instructor if you tried to change the code before selecting Standby first though.