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

[Feature request] Keybinding for Rendering #14

Open
roaldarbol opened this issue May 11, 2023 · 6 comments
Open

[Feature request] Keybinding for Rendering #14

roaldarbol opened this issue May 11, 2023 · 6 comments

Comments

@roaldarbol
Copy link

First of all thanks for this extension, it's absolutely amazing!

One thing that I love about using VS and this extension is that is enables a keyboard only workflow. The only thing I miss for that to be fully implemented is a few keybindings - in particular Render (normally F6) (STL export would be great too and is covered in #11). Hope it could be possible in the future. :-)

@Leathong
Copy link
Owner

You can customize the keyboard shortcut. open "preferences: open keyboard shortcuts" from the command palette, and filter "@command:scad-lsp.preview".

@roaldarbol
Copy link
Author

Tnanks for the tip. This is however just for the preview. Is there a way to set a keybinding for Render as well?

@Leathong
Copy link
Owner

Leathong commented May 23, 2023

Just save the file,openSCAD will re-render the file automatically. Or you means export? The plugin cannot export for now, you can export from openSCAD.

@roaldarbol
Copy link
Author

On saving, it does Reload and Preview, not Render. If you look in the Design pane of OpenSCAD, you'll see keybindings for Reload and Preview (F4), Preview (F5), Render (F6) and 3D Print (F8) - here I'm talking about the Render (F6) action. I often use different resolutions for preview and render ($fn= $preview ? 60 : 200;), thus it would be useful to Render from VSCode.

@Leathong
Copy link
Owner

I got it, I will check if there is a command line argument for that feature.

@roaldarbol
Copy link
Author

I found an overview of all the command line features here, and it does have a --render argument - hope that helps. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants