You need a special outlet to do what you are wanting to do. Two cables entering an outlet box indicate that the outlet is not the last fixture on a circuit.
![Electrical Basics Wiring A Basic Single Pole Light Switch](https://www.addicted2decorating.com/wp-content/uploads/2019/03/how-to-wire-a-light-switch-in-the-middle-of-a-circuit-2-connect-power-in-and-power-out-and-ground-wires.jpg)
Electrical Basics Wiring A Basic Single Pole Light Switch
2 black 2 red 2 white wires outlet. Replaced outlet with two white two red two black and one ground wire. In the outlet box you will have a black white and bare ground wire. I have just installed two gfci outlets i followed the line in black and white and then the line out black and white connections to the first outlet. You can now screw the outlet to the box and proceed to the switch box. Black wires attached to bottom of outlet gold screw side red wires attached to top of outlet middle tab removed and white wires were fastened to silver side of outlet. They should both be of the same wire gauge.
The other sends it on to other loads on the circuit. One of the black wires receives power from the service panel. I tested the line in and i have power at the wires the outlet tests and shows connected with a light. 12 awg for 20 amp circuits and 14 awg for 10 and 15 amp circuits. One of the hot wires attaches to a brass terminal on one side of the outlet and the other attaches to a brass terminal on the other side. Youll have two cables in the switch box a live one with a black and white wire and the one going to the outlet which has a red black and white wire.
I am having a problem wiring gfci outlets. The 2 white are obviously your neutrals your blacks are 120vin from breaker and out to other outlets. The white wires allow current passing through the outlet and the other loads on the circuit to return to the panel. And ground is of course ground. Identified the hot black wire and the hot red when light switch is turned on. When measured with respect to the white neutral wire the red wire carries the same 120 volt current that the black one carries making the voltage across these two hot wires 240 volts.
Essentially you connect the white and bare wires directly to the light and switch the black wire hot through a switch.