stef-levesque / vscode-3dviewer

Preview 3D meshes in VSCode
MIT License
96 stars 20 forks source link

how to open disk file? #4

Closed beantowel closed 5 years ago

stef-levesque commented 5 years ago

In the Explorer section of the Editor, you should see the option to “Open in Viewer” when right-clicking on a compatible file format.

Otherwise, you can use the command palette “Open URL in Viewer” and copy the file path, using the “file://“ prefix.

rawnsley commented 5 years ago

This option does not appear from me on OSX:

screen shot 2018-10-23 at 11 25 07

VS Code Version 1.28.1 (1.28.1)

stef-levesque commented 5 years ago

Try to open the folder containing the file, and right-click on it in the Explorer section, not the Open Editor section.

stef-levesque commented 5 years ago

Alternatively, you can use the command palette to run openUrlInViewer and specify your local file with the file:/// scheme. (E.g. file:///Users/me/Documents/file.stl )

rawnsley commented 5 years ago

@stef-levesque Thanks - it works outside of the Open Editor section. Strange behaviour, but that's on Code not you.