I need to format my laptop. How do I re-install after formatting ?

My laptop keeps crashing, so i need to format it and re-install all the software. How do I re-install studio 2014 after formatting the laptop?