The red wire would be used as the switched leg back up to the vanity light where it would be connected to the black wire of the vanity light. The black and white would be used for the power for the outlet and the vanity light switch.
![Wiring A Switch And Outlet The Safe And Easy Way Family](https://www.familyhandyman.com/wp-content/uploads/2017/05/FH13MAR_SWIOUT_06.jpg)
Wiring A Switch And Outlet The Safe And Easy Way Family
Wiring a plug to a light switch. Connect the black wire to one of the switch terminals and the black wire going to the light fixture to the other switch terminal. 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. Learn how to wire up a plug in light and switch. This kind of task is really useful if you have a source of power where you can plug in a light but want to place the switch in a more convenient. Twist the white wires together and cap them and connect the ground wires to the ground terminal. Hook up the outlet as you normally would.
Things youll need wire cutters needle nose pliers screwdriver standard light switch 14 gauge copper wiring outletswitch face plate. Install a 3 wire cable of the same wire gauge from the vanity light to the wall switch. Wiring a receptacle to a switch receptacle always on. You then splice all the white wires and all the ground wires in the switch box together.