How do I comment lines in .plist file?

Enrico Susatyo picture Enrico Susatyo · Dec 2, 2013 · Viewed 17.1k times · Source

How do I comment out lines in my .plist file in my iOS/Mac projects?

I want to comment out the settings that I don't want to expose for this version of the project, but I may want to expose it later.

Answer

Enrico Susatyo picture Enrico Susatyo · Dec 2, 2013

Syntax of plist is pretty much like XML, so you can use XML style comments.

<!--
<dict>
    <key>Hello</key>
    <string>World</string>
</dict> 
-->