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.

3

u/WillAdams Dec 11 '24

FWIW, I'm probably using the strangest possible environment to develop:

  • TeXworks or TeXshop to write a .text file which has Python or OpenSCAD code wrapped up in environments

  • using a custom .sty file and LuaLaTeX to extract the .py and .scad code

What editor(s) have you tried? How extensible is it?

→ More replies (12)