For the More Curious: Reading/Writing Defaults from the Command Line

You can use the defaults command-line tool to safely read and write defaults. For example, to see your defaults for Xcode, you can bring up the Terminal and enter the following command:

d​e​f​a​u​l​t​s​ ​r​e​a​d​ ​c​o​m​.​a​p​p​l​e​.​d​t​.​X​c​o​d​e​

You should see all your defaults for Xcode. There are a lot of them! A few lines of ours look like this:

I​D​E​D​i​s​a​b​l​e​G​i​t​S​u​p​p​o​r​t​F​o​r​N​e​w​P​r​o​j​e​c​t​s​ ​=​ ​1​;​ I​D​E​E​n​a​b​l​e​L​i​v​e​I​s​s​u​e​s​ ​=​ ​0​;​ I​D​E​F​i​l​e​T​e​m​p​l​a​t​e​C​h​o​o​s​e​r​A​s​s​i​s​t​a​n​t​S​e​l​e​c​t​e​d​T​e​m​p​l​a​t​e​C​a​t​e​g​o​r​y​ ​=​ ​S​o​u​r​c​e​;​ I​D​E​F​i​l​e​T​e​m​p​l​a​t​e​C​h​o​o​s​e​r​A​s​s​i​s​t​a​n​t​S​e​l​e​c​t​e​d​T​e​m​p​l​a​t​e​N​a​m​e​ ...

Get Cocoa Programming for OS X: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.