Scripting outside Krita

Can I script Krita from VSCode or Idle?

yes. I use Atom myself.

What to do to make Krita’s libraries available to python (where exactly are these libraries)?

I think eyeofodin might have misunderstood… You can create krita scripts in any editor, but they will have to run inside Krita, either from the gui, or through the kritarunner application.

I want to replace the Scripter editor with Visual Studio Code to benefit from syntax prompting. But I don’t know how to configure it. So that all modules of the krita are visible.

I don’t think you can set it up that way.