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. From the switch new 2 wire cable is run to the new light location.
How Do I Wire A Receptacle From A Light Outlet But Keep It
How to add a light switch to an existing outlet. You then splice all the white wires and all the ground wires in the switch box together. If your wiring is long enough you can use it to run to the switch. Twist and cap the white wires connect all the ground wires to the ground screw and youre done. If not youll have to wire a longer wire from the light fixture to the switch or from the switch to the power source. The neutral for the new light is taken from the receptacle and spliced to the new white wire and to a pigtail that connects back to the receptacle. Holes must be drilled inside the stud bay either through the floor into the crawl space or through the top plate into the attic at both the existing outlet and the new switch.
Install the new light fixture and fish the wires down to the switch box. Disconnect the wiring from the light fixture and outlet. Hook up the outlet as you normally would. After identifying the line and load terminals on the switch remove the wire going to the light fixture twist it together with the wire going to the outlet add a jumper wire cap them and attach the jumper wire back to the switchs load terminal. Wire must be run from the outlet to the new switch and that isnt always easy. Wire must then be fed through the hole across the space and into the wall with the switch.
The switch comes first in the new part of the circuit and new 2 wire cable is run to it from the outlet.