Mark the wire wire with black electrical tape at each end and use it for the power out. Connect this jumper wire back to the switch terminal.

White Motion Sensor Single Pole Light Switch Neutral Wire
How to wire an outlet to a light switch. The source is at the outlet and a switch loop is added to a new switch. How to wire up a electrical outlet to a light switch. To add an outlet to a light switch you start by making a pigtail using the hot wire the wire going to the fixture controlled by the switch and a third length of wire. Hook up the outlet as you normally would. Use the black wire as the power in. Remove the black line wire from the switch twist it together with the black wire going to the receptacle and add a six inch length of black wire of the same gauge.
At the switch box the white neutral wires are spliced together and the ground wires are spliced and a pigtail wire is added and attached to the green ground screw on the light switch frame. The black wire from the switch connects to the hot on the receptacle. You then splice all the white wires and all the ground wires in the switch box together. Diy electrical work duration. The hot source wire is removed from the receptacle and spliced to the red wire running to the switch. The source neutral wire on the receptacle is removed and spliced to the white wire running to the switch and to a pigtail back to the receptacle neutral.
Now remove the wire cap from the two white wires in the box add the white wire from the outlet and reset the cap. With this example these two wires are configured to break the circuit power and send the power to the switch and then back to the outlet. How to install a light switch to turn on a wall outlet.