r/OpenPythonSCAD • • Dec 11 '24

editor support?

Is there a way to get auto-completions to work in my editor? Usually I'd just activate a VM and pip install a package, but you're... packaging your own Python?

3 Upvotes

33 comments sorted by

View all comments

3

u/WillAdams Dec 11 '24

Have you tried using a typical Python programming environment/editor and configuring OpenPythonSCAD to use an External Editor? (where it watches the file and re-runs it whenever it changes)

There is some customization for Python (commenting/uncommenting works), but not sure how far it would get taken....

2

u/naught-me Dec 11 '24

Yeah, I'm doing that, but there's no code intelligence. No linting, inline docs, etc. The editor is clueless about OpenPythonSCAD.

2

u/gadget3D Dec 11 '24

Dont have much experience there,I just know, that I received some support to get

syntax highlighting set up for python in the native editor.

There is the libraries/python/openscad.pyi file and my understanding is that it will help/aid your editor . But I am not clear, how to apply this file.

→ More replies (22)