lfurzewaddock / vscode-opn

Opens files in the default application for the file type set in the OS
MIT License
5 stars 2 forks source link

Change default program open png in VS Code #7

Open maxssantos opened 5 years ago

maxssantos commented 5 years ago

Hi,

How can I change default program to open PNG or JPG files on VS Code through "Open Files In App"?

Thank's

lfurzewaddock commented 5 years ago

Currently this plugin depends on the language for plain text files set by VS Code, e.g. JavaScript, C# etc.

As there is no language available to the plugin for .png and .jpg files this plugin will not work. It may be possible to add logic which attempts to fall back to using the file extension if language is not available, but I have no plans to implement this. I would be happy to accept a PR.