# How to change the brace/indentation style for auto-format?

**URL:** <https://discourse.processing.org/t/how-to-change-the-brace-indentation-style-for-auto-format/45723>\
**Category:** Beginners\
**Created:** [February 7, 2025, 10:49am UTC](https://discourse.processing.org/t/how-to-change-the-brace-indentation-style-for-auto-format/45723 "2025-02-07T10:49:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kryt](https://avatars.discourse-cdn.com/v4/letter/k/d9b06d/32.png) [@kryt](https://discourse.processing.org/u/kryt)\
**Post date:** [February 7, 2025, 10:49am UTC](https://discourse.processing.org/t/how-to-change-the-brace-indentation-style-for-auto-format/45723/1 "2025-02-07T10:49:30Z")

</div>

Apologies if this is the wrong place for this.

Ever since Processing changed to 2, the indentations and curly braces have not worked very well to cover different styles, when using auto-format to fix the code.

[https://en.wikipedia.org/wiki/Indentation\_style](https://en.wikipedia.org/wiki/Indentation_style)

As a comparison, Arduino IDE uses .clang-format file which allows changing indentation behaviour. Is there a way to do a similar change in Processing?

If not, then my humble and kind request is please please add that.

---

<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:** [February 8, 2025, 3:50pm UTC](https://discourse.processing.org/t/how-to-change-the-brace-indentation-style-for-auto-format/45723/2 "2025-02-08T15:50:43Z")

</div>

Hello @kryt,

I don’t have a solution for Processing…

Consider alternative editors such as _VSCode_.

I added this to _VSCode_ and able to use the indentation style that I prefer to use for my personal coding:

> **[Astyle - Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=chiehyu.vscode-astyle)**
>
> Extension for Visual Studio Code - Format C/C++/Obj-C/C#/Java code with Astyle in VSCode

The extension used this:  
_[https://astyle.sourceforge.net/](https://astyle.sourceforge.net/)_

_ **The above can be a challenge!** _  
The takeaway from this should be _explore alternative editors_ and find a solution that best suits your needs.

I have not yet tried this (using another Processing extension… explore what is available):

- [Processing Language Server Extension for VSCode](https://discourse.processing.org/t/processing-language-server-extension-for-vscode/45246)
- [Creating a Processing VSCode Extension: 2024 pr05 Grantee Wrap Up](https://www.youtube.com/watch?v=KsHP7RExNzM)

`:)`

---

<div class="post-metadata">

**Author:** ![kryt](https://avatars.discourse-cdn.com/v4/letter/k/d9b06d/32.png) [@kryt](https://discourse.processing.org/u/kryt)\
**Post date:** [February 10, 2025, 8:49am UTC](https://discourse.processing.org/t/how-to-change-the-brace-indentation-style-for-auto-format/45723/3 "2025-02-10T08:49:38Z")

</div>

Thank you for the suggestion, @glv.

If there is no way to change it, then I think I’ll stick to processing IDE for now, for this purpose.

Personally I write larger Java projects (that have processing in the background) using Sublime Text, which is pretty good and modifiable. It’s just that I teach using processing, and I can’t waste extra time having students setup another system. Processing itself is good enough and stable enough to run on pc/mac, and as a teacher, that’s one less thing to worry about.

I’m actually surprised if there’s no way to modify the brace/indentation style, since e.g. tabs can be set. While I am sure this is already being discussed or thought about, do you by any chance know where one might put suggestions for developing processing further? I tried to look for that from the processing-, foundation-, and discourse-websites, but could not find it.

---

<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:** [February 10, 2025, 11:56am UTC](https://discourse.processing.org/t/how-to-change-the-brace-indentation-style-for-auto-format/45723/4 "2025-02-10T11:56:22Z")

</div>

> [@kryt](#):
>
> do you by any chance know where one might put suggestions for developing processing further? I tried to look for that from the processing-, foundation-, and discourse-websites, but could not find it.

> [@kryt](#):
>
> do you by any chance know where one might put suggestions for developing processing further?

Look for _Contribute_ here:

- [https://processing.org/](https://processing.org/)

This is a good place to start:

- [Report Bugs · processing/processing Wiki · GitHub](https://github.com/processing/processing/wiki/Report-Bugs#1-is-it-a-problem-or-a-questio%40n)

- [GitHub · Where software is built](https://github.com/processing/processing/issues) \< Check out the Wiki here!

`:)`
