How to do auto alignment of function arguments in gnome builder?

Hi,

I was going through this post - coding-style-checks-in-ci, here its mentioned that GNOME Builder aligns function arguments by default

I downloaded gnome-builder & checked the auto-alignment of function arguments & observed that it’s not auto aligning.

To check, I typed following in gnome-builder editor

static void example_app_open (GApplication *app, GFile **files, gint n_files, const gchar *hint)

The expected result should be like this but it remains the same as above

static void
example_app_open (GApplication  *app,
                  GFile        **files,
                  gint           n_files,
                  const gchar   *hint)

Am I missing anything? Do I need to change any setting to make it work?

Hello,
I know the documentation is difficult to find.
You have to follow the steps described here and install a code formatter for example uncrustify.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.