在 Eclipse 中将 plist 文件编辑为 XML
Edit plist file as XML in Eclipse
我看过 this question,但它似乎是 Android 特有的。如何让 Eclipse 将 .plist
文件视为 XML?默认情况下,它只是在我的 Mac 上的 Xcode 中打开它。我可以使用 "Open with > Text Editor" 在 Eclipse 中打开它,但是我没有得到语法高亮显示。
- 打开首选项并转到 "General > Editors > File Associations"。
- 在 "File types" 旁边,单击 "Add..." 并输入
*.plist
作为文件类型。
- 在 "Associated editors" 旁边,单击 "Add..." 和 select XML 编辑器。
- 按几次 "OK" 退出首选项。
- 右键单击您的 plist 文件并选择 "Open with > XML Editor."
- 您可能需要重新启动 Eclipse 才能获得语法高亮。
我看过 this question,但它似乎是 Android 特有的。如何让 Eclipse 将 .plist
文件视为 XML?默认情况下,它只是在我的 Mac 上的 Xcode 中打开它。我可以使用 "Open with > Text Editor" 在 Eclipse 中打开它,但是我没有得到语法高亮显示。
- 打开首选项并转到 "General > Editors > File Associations"。
- 在 "File types" 旁边,单击 "Add..." 并输入
*.plist
作为文件类型。 - 在 "Associated editors" 旁边,单击 "Add..." 和 select XML 编辑器。
- 按几次 "OK" 退出首选项。
- 右键单击您的 plist 文件并选择 "Open with > XML Editor."
- 您可能需要重新启动 Eclipse 才能获得语法高亮。