How do I comment lines in .plist file?

info.plist, ios, macos, plist

Solution

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

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

Problem

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.

Original source