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

Add ability to open files with the OS's default application #75188

Closed
omern1 opened this issue Jun 10, 2019 · 6 comments
Closed

Add ability to open files with the OS's default application #75188

omern1 opened this issue Jun 10, 2019 · 6 comments
Assignees
Labels
*extension-candidate Issue identified as good extension implementation feature-request Request for new features or functionality file-explorer Explorer widget issues

Comments

@omern1
Copy link

omern1 commented Jun 10, 2019

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.

@egamma egamma added the feature-request Request for new features or functionality label Jun 10, 2019
@egamma
Copy link
Member

egamma commented Jun 10, 2019

For now you can reveal the program in the finder/desktop and open the file from there.

@egamma egamma added the file-explorer Explorer widget issues label Jun 10, 2019
@omern1
Copy link
Author

omern1 commented Jun 10, 2019

Yes but that's very cumbersome, it would be much easier if it can be done directly from VS code.

@hugonasciutti
Copy link

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.

@hugonasciutti
Copy link

I just wanted to open an HTML file but always have to open the folder to open with the default application.

@isidorn isidorn self-assigned this Oct 8, 2019
@PapsOu
Copy link

PapsOu commented Oct 9, 2019

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

@isidorn isidorn added the *extension-candidate Issue identified as good extension implementation label Oct 9, 2019
@vscodebot
Copy link

vscodebot bot commented Oct 9, 2019

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!

@vscodebot vscodebot bot closed this as completed Oct 9, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*extension-candidate Issue identified as good extension implementation feature-request Request for new features or functionality file-explorer Explorer widget issues
Projects
None yet
Development

No branches or pull requests

5 participants