The hot source wire is connected to the common terminal on sw1. The source is at the outlet and a switch loop is added to a new switch.

Aaa4 Combination Switch Receptacle Wiring Diagrams Multiple
Light switch outlet wiring. Use this home depot guide to choose the right gfci outlets receptacles usb outlets and electrical outlets for your home. Wiring a switch loop when the electrical source originates at a light fixture and is controlled from a remote location a switch loop is used. At the outlet you connect the cable to the load terminals. Two examples have. The black wire from the switch connects to the hot on the receptacle. One switch screw terminal is for the power in.
When wiring a switch to control a 110volt outlet the power wire is connected to the switch as follows. Run a cable to the light fixture and another cable to the outlet from which youre drawing power. Turn off the power to the outlet and before making connections test the leads with a voltage tester to make sure theyre dead. Keep in mind that when wiring a switch it is not necessary to switch the white neutral wire. If you put the loop over the screw in the counterclockwise direction tightening the screw will force the loop open and could create a loose connection. The hot source wire is removed from the receptacle and spliced to the red wire running to the switch.
I have provided links below that will show you a few wiring diagrams that describe how this can be done. Wiring a switch for a light that also powers an outlet the power source of a switch may be used for an outlet as long as you plan your wiring accordingly so you can make all. Three way switch wiring with light middle the source in this circuit is at the first switch and the light fixture is located between sw1 and sw2. Switch controls light only switch controls light and outlet a metal tab connects the line right side of the switch and line side of the outlet. This wiring diagram illustrates adding wiring for a light switch to control an existing wall outlet. One switch screw terminal is for the power out.
Replacing or upgrading a light switch is a simple and inexpensive diy project. This circuit is wired with a 2 wire cable running from the light to the switch location. This guide helps you understand basic residential electrical wiring and requirements. Wrapping the wire clockwise when wiring a light switch ensures that the loop on the end of the wire will tend to close when the screw is tightened. These are the ones that arent connected to power. Three wire cable runs between each switch and the light fixture.