Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dnicolson/binary-plist
🔀 Visual Studio Code extension to read and write binary plist files
https://github.com/dnicolson/binary-plist
Last synced: 2 months ago
JSON representation
🔀 Visual Studio Code extension to read and write binary plist files
- Host: GitHub
- URL: https://github.com/dnicolson/binary-plist
- Owner: dnicolson
- License: mit
- Created: 2019-06-01T19:47:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-16T16:31:22.000Z (5 months ago)
- Last Synced: 2024-10-04T13:34:48.973Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 985 KB
- Stars: 18
- Watchers: 5
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Binary Plist
A Visual Studio Code extension that enables editing of binary property list files as XML. It is inspired by the [BinaryPlist](https://github.com/tyrone-sudeium/st3-binaryplist) Sublime Text package, although the experience is not as seamless (the user must agree to opening a binary file and the editing takes place in an additional tab). A virtual file system is used to achieve this using the `FileSystemProvider` API.
The extension is cross-platform but primarily uses the macOS `plutil` binary for conversion, the Python `plistlib` is used as an alternative if available. The node package `simple-plist` is used as a fallback but due to JavaScript not having a float type `real` values that are whole numbers will be cast to `integer` types (a warning dialog is shown first).
## Usage
Simply open a binary property list file and after clicking the "Open Anyway" button and choosing the default "Text Editor" editor from the list another tab will open in XML and all changes saved will be reflected in the other tab as binary.
If Visual Studio Code does not recognize the file as a `plist` file select it as the language mode. File associations can be used to perform this when a file is opened, the following settings code will associate `.strings` files:
```javascript
"files.associations": {
​ "*.strings": "plist"
}
```## Tests
Tests can be run with `npm test` or running `Extension Tests` in the Visual Studio Code debugger.