# New tab in Processing

**URL:** <https://discourse.processing.org/t/new-tab-in-processing/44330>\
**Category:** Beginners\
**Created:** [April 22, 2024, 7:36pm UTC](https://discourse.processing.org/t/new-tab-in-processing/44330 "2024-04-22T19:36:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon1](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@Simon1](https://discourse.processing.org/u/Simon1)\
**Post date:** [April 22, 2024, 7:36pm UTC](https://discourse.processing.org/t/new-tab-in-processing/44330/1 "2024-04-22T19:36:42Z")

</div>

Can someone please tell how to add code to a new tab please?

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [April 22, 2024, 7:39pm UTC](https://discourse.processing.org/t/new-tab-in-processing/44330/2 "2024-04-22T19:39:46Z")

</div>

In the horizontal line with the existing tab(s), there is a small arrow pointing down (right next to the tab)

Click the arrow and say “new tab”.

Then the code from the different tabs is stitched together internally.

- Example: Besides the main tab I often use InputsKeys, InputsMouse, States, Tools as tab names and a tab for each class like classPoint, classTriangle etc.

Very convenient. Like chapters in a book.

Chrisir

---

<div class="post-metadata">

**Author:** ![Simon1](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@Simon1](https://discourse.processing.org/u/Simon1)\
**Post date:** [April 22, 2024, 7:42pm UTC](https://discourse.processing.org/t/new-tab-in-processing/44330/3 "2024-04-22T19:42:19Z")

</div>

Okay, thank you when my friend and I tried to add new code specific to the new tab, we got a lot of read lines and we are not sure what what we are doing wrong?

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [April 22, 2024, 7:44pm UTC](https://discourse.processing.org/t/new-tab-in-processing/44330/4 "2024-04-22T19:44:09Z")

</div>

The errors (red lines) are probably not because of the tab (as such)

can you maybe post the content of this tab?

or post a screenshot?

* * *

as I said, the code from the different tabs is **stitched together** internally.

So a tab continues the **same** Sketch. You are not allowed to repeat `setup()` or `draw()` or any variables with the same name…

It is like you had all code in one tab.

---

<div class="post-metadata">

**Author:** ![Simon1](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@Simon1](https://discourse.processing.org/u/Simon1)\
**Post date:** [April 22, 2024, 7:49pm UTC](https://discourse.processing.org/t/new-tab-in-processing/44330/5 "2024-04-22T19:49:11Z")

</div>

Okay, thank you. You have been very helpful, i will give that a try and see what happens?

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [April 22, 2024, 7:51pm UTC](https://discourse.processing.org/t/new-tab-in-processing/44330/7 "2024-04-22T19:51:28Z")

</div>

> [@Simon1](#):
>
> i will give that a try

what do you mean exactly?

---

<div class="post-metadata">

**Author:** ![Simon1](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@Simon1](https://discourse.processing.org/u/Simon1)\
**Post date:** [April 22, 2024, 7:57pm UTC](https://discourse.processing.org/t/new-tab-in-processing/44330/8 "2024-04-22T19:57:25Z")

</div>

In other words , I’ll put your advice into practice
