Changing squawk
I could be wrong in saying this but, you don't have to switch the transponder to standby whilst changing squawk. I.E There's no legal requirement for you to do so.
It is, however, good practice, as it prevents the transmission of an incorrect ident (as you're cycling through the transponder codes) especially, the emergency codes (7500, 7600, 7700).