Different ways using different softwares. I don't know which one are you using but I use MPLAB IDE with Picbasic Pro.
In case you are using the same you can simply click on configure > configuration bits and select your desired settings. Rest will be taken care by the software itself.