Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support bplist files that don't have a .plist extension #4

Open
chrisdmc opened this issue Nov 26, 2019 · 5 comments
Open

Support bplist files that don't have a .plist extension #4

chrisdmc opened this issue Nov 26, 2019 · 5 comments

Comments

@chrisdmc
Copy link

Looking at applications written for iOS (can't speak for MacOS), it's very common for plist files to not use the .plist extension. Is it possible to enable this extension based on the file magic 62 70 6C 69 73 74 30 30 D4 instead?

@dnicolson
Copy link
Owner

That sequence of bytes is checked for files with a plist or strings file extension. Can you give an example of other files in iOS projects?

@j040p3d20
Copy link

Clippy on MacOS uses .data

@dnicolson
Copy link
Owner

dnicolson commented Feb 18, 2021

Please try version 0.5.0 of the extension, setting the language mode to plist can be used for files without a .plist extension. For performance reasons the first bytes are only checked if Visual Studio Code thinks the file is a property list.

You can customize which file extensions should be recognized as plist files by using Visual Studio Code's files.associations.

@cachius
Copy link

cachius commented Jun 14, 2023

@dnicolson You should add this to the readme! I had opened a binary .plist file before installing this wonderful extension, and it just wouldn't decode it even after re-opening the file. Kept displaying bplist00����K_�... and language mode XML in the bottom right. Changing the language mode to plist did the trick!

Edit:
Just saw it is already there:

If Visual Studio Code does not recognize the file as a plist file select it as the language mode.

A subheading like would increase visibility for good, e.g.

Applying manually

@dnicolson
Copy link
Owner

@cachius files with a .plist extension will automatically use the plist language mode. Are you able to demonstrate this not working?

Feel free to make a pull request to update the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants