# Running a script from VS code

**URL:** <https://discourse.processing.org/t/running-a-script-from-vs-code/38024>\
**Category:** Processing.py\
**Created:** [July 19, 2022, 8:03am UTC](https://discourse.processing.org/t/running-a-script-from-vs-code/38024 "2022-07-19T08:03:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel11](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@Daniel11](https://discourse.processing.org/u/Daniel11)\
**Post date:** [July 19, 2022, 8:03am UTC](https://discourse.processing.org/t/running-a-script-from-vs-code/38024/1 "2022-07-19T08:03:02Z")

</div>

Hi,  
I have currently created a piece of code in processing and I would like to create another piece of code in VS Code, which would call and run the code I currently have, just wondering if this is possible and if so how would I do it?  
Thanks Daniel

---

<div class="post-metadata">

**Author:** ![tabreturn](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tabreturn/32/3697_2.png) [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Post date:** [July 19, 2022, 8:17am UTC](https://discourse.processing.org/t/running-a-script-from-vs-code/38024/2 "2022-07-19T08:17:00Z")

</div>

I have a few questions –

- What programming language are you writing in VS Code?
- Why is it that you specifically have to use VS Code?

The Processing code is (presumably) written in Python Mode / Processing.py? You could use the [command line version of Processing.py](https://py.processing.org/tutorials/command-line/) to execute that code from outside the PDE (Processing Development Environment) – perhaps get your VS Code program to do this.

If you simply want to write Python Mode code in the VS Code editor, then configure VS Code (or whatever editor you prefer) to run the command line version of Processing.py on the code you’re writing in VS Code (and leave out the PDE altogether).
