Some preferences can be controlled from the Preferences dialog within the Arduino IDE. Access it from the File menu in Windows or Linux, or the Arduino menu on the Mac.
Other preferences must be changed in the preferences.txt file. This file's location is displayed in the preferences dialog (as indicated by the arrow in the image below). It should be:
Only edit the file when Arduino is not running - otherwise your changes will be overwritten when Arduino exits.