If you want the receptacle to be powered all the time and want to use the switch to control a load other than the receptacle you wire it like this. Adding an outlet to a 3way switch.
Adding An Outlet To A Light Switch Just Want To Make Sure I
How to add a light switch from an outlet. Outlet power wiring a light switch and a light. The circuit wires required for an outlet include a ground wire a neutral wire and the circuit power wire. Be sure to leave about 4 5 inches of wire hanging out of each box. Mount your outlet box where you want it and run your wires from the switch box to the outlet box. In uk you cant run a socket from a light switch. Disconnect the live wire from the switch and splice it together with the black wire going to your new outlet adding a 6 inch length of spare black wire of the same gauge to make a pigtail.
If you wanted to put a 5a lighting socket from a switch. On the other hand if you simply w. Circuit power and wiring in order to add a receptacle outlet to a light switch the circuit wiring must be at the location of the light switch or contained inside the electrical box of the light switch. Twist the three wires together clockwise and screw on a wire cap then connect the short wire back to the switch. About half an inch of bare wire should be sufficient to make a good connection. It depends how you want the switch and receptacle to function.
What sort of outlet. A lighting circuit is typically 610a and a socket is usually on a 16a radial or 32a ring. Strip the insulation off the ends of your wires.