i have an Arduino Uno r3 and i was wondering how to connect a toggle switch so i could turn it on and off without
unplugging the arduino
If you mean to turn power on and off to the arduino, there is no provision to be able to do that with an external switch. If the board is plugged into the PC USB it will be powered on always. If you have only external DC plugged into the arduino's DC power connector then a added switch would have to be wired into the external wires feeding the arduino's DC power connector.