A context menu option can be added to the file browser that allows files to be opened in the default application for that file type. For example if the file is a PDF document, opening the context menu and click "Open with desktop" will open the file with the default PDF reader.
This can be accomplished with the openItem() method from Electron's shell module.
I am aware that this particular feature has been suggested before in #50383 and #45989 but my suggestion is not the same as that.
For now you can reveal the program in the finder/desktop and open the file from there.
Yes but that's very cumbersome, it would be much easier if it can be done directly from VS code.
I also wanted this feature, I found an extension that does that, Open - sandcastle.vscode-open, repository. But it would be great to have natively.
I just wanted to open an HTML file but always have to open the folder to open with the default application.
Is this feature is planned ? It is really annoying to open the folder and open the desired file. All the extensions in the VSCode marketplace does not work under Linux
We try to keep VS Code lean and we think the functionality you're asking for is great for a VS Code extension. Maybe you can already find one that suits you in the VS Code Marketplace. Just in case, in a few simple steps you can get started writing your own extension. See also our issue reporting guidelines.
Happy Coding!
Most helpful comment
Yes but that's very cumbersome, it would be much easier if it can be done directly from VS code.