# How do I import Processing libraries in Visual Studio Code?

**URL:** <https://discourse.processing.org/t/how-do-i-import-processing-libraries-in-visual-studio-code/44991>\
**Category:** Beginners\
**Created:** [August 25, 2024, 8:22am UTC](https://discourse.processing.org/t/how-do-i-import-processing-libraries-in-visual-studio-code/44991 "2024-08-25T08:22:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@Erik](https://discourse.processing.org/u/Erik)\
**Post date:** [August 25, 2024, 8:22am UTC](https://discourse.processing.org/t/how-do-i-import-processing-libraries-in-visual-studio-code/44991/1 "2024-08-25T08:22:00Z")

</div>

I’m using processing in visual studio code, and want to import a library.

Since visual studio code lacks the contribution manager found in the processing IDE, I’m not sure how to do it. As far as I understand, libraries are meant to be located in a “libraries” folder within the sketch folder.

I want to import the sound library, and have found the git for it here: [processing-sound/src/processing/sound at main · processing/processing-sound · GitHub](https://github.com/processing/processing-sound/tree/main/src/processing/sound)

Now, do I just copy files from the git to my libraries folder? If yes, what files needs to be included? Are there other steps I need to take, like setting up a setup file for instance?

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [August 25, 2024, 10:18am UTC](https://discourse.processing.org/t/how-do-i-import-processing-libraries-in-visual-studio-code/44991/2 "2024-08-25T10:18:26Z")

</div>

Hello,

Assuming you are using (from your other post):

> **[Processing Language - Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=Tobiah.language-pde)**
>
> Extension for Visual Studio Code - Processing Language Support for VSCode

Install libraries with the Processing IDE first or manually.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/d/6/d643254f7555c3915757e934792764d5a929bb3a.png)

If it works in the Processing IDE you can then run it with VS Code as the editor and launch it.

This helped me get started:

[![](https://img.youtube.com/vi/LKuu-WcOZYA/maxresdefault.jpg "Processing + Visual Studio Code setup for Windows") ](https://www.youtube.com/watch?v=LKuu-WcOZYA)

`:)`

---

<div class="post-metadata">

**Author:** ![Erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@Erik](https://discourse.processing.org/u/Erik)\
**Post date:** [August 26, 2024, 3:18pm UTC](https://discourse.processing.org/t/how-do-i-import-processing-libraries-in-visual-studio-code/44991/3 "2024-08-26T15:18:48Z")

</div>

Thanks for the feedback, I looked at the Processing IDE file structure as reference and found that the Sound library needs to be located in the Documents/Processing/libraries folder, not the sketch folder.

In case someone run into the same problem as me, I incidentally had the same sketch file name as a class in the sound library causing an error when building the sketch. Changing sketch/folder name fixed it.

---

<div class="post-metadata">

**Author:** ![ProcessingOrg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/processingorg/32/18341_2.png) [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Post date:** [August 27, 2024, 9:13am UTC](https://discourse.processing.org/t/how-do-i-import-processing-libraries-in-visual-studio-code/44991/4 "2024-08-27T09:13:15Z")

</div>

Hey @Erik! Our pr05 grantee @diyaayay is currently working on a new VSCode extension for Processing 4. Would you be interested to check out the prototype when it’s ready for testing?

—Raphaël
