[Python] How do I access VS-Code API from python code?

Discussão em 'Python' iniciado por Stack, Agosto 28, 2025.

  1. Stack

    Stack Membro Participativo

    I am supporting some vs-code users with moderate python skills.

    I would like to enable them to be able to access the vs-code API from python. This could be to perform tasks including:

    • string find/replace in current editor
    • access the full text content of the current editor, transform it, push the new version back
    • access some vs-code commands that are created in a custom vs-code extension

    I was expecting this to be quite straightforward, but it is starting to look impossible. I'd be grateful if someone could:

    • clarify if it is possible or not
    • direct me to online guidance (or ideally, examples) that demonstrate the above.

    Continue reading...

Compartilhe esta Página