How to open .xlsx files in MS Excel from VS Code?

Viewed 8796

Is there a way to open certain files like xlsx/docx in external apps (preferably system defaults) from VS Code Explorer instead of just opening another tab in VS Code?

I want to be able to open xlsx/docx etc. in MS Office Apps by double clicking from the explorer, if that's possible at all.

3 Answers

After installing the extension called open, you can open ms files by default app with right click. (But it does not work in WSL)

with right click

Check this extension - both .docx and .xlsx are working good and you can even edit them.

Example of .docx:

For docx

Example of .xlsx:

For xlsx

If you want to open .xlsx files within vs code then this tool does the job. It is much faster then loading Excel I find.

Excel Viewer

Related