soldering a new valve in place that close to the wall can often present a real challenge.
A much simpler solution would be to cut the existing valve off the copper stub out, clean the end of the copper real well with a piece of emery cloth and attach a compression type angle stop valve.
Technically the copper lines in our homes are copper pipe, therefore they are measured by their internal diameter thus your 1/2" copper pipe has a 1/2" internal diameter and a 5/8" outside diameter.
The compression valve will need to fit on the outside of the pipe so you will need a 5/8"compression x 3/8"compression angle stop valve.
To install the valve you first put the compression nut on the pipe with the open side facing out. Next you slip on the compression ferrule (a small brass ring that looks like a mans wedding ring), then slip the valve on the end of the pipe and push in till the pipe is fully inserted into the valve input.
You then hold the valve with one wrench and slide the compression nut and ferrule forward and screw onto the valve threads. Tighten it with a second wrench and your finished.