Author Topic: Formatting does not work with typedef struct  (Read 1681 times)

photometer

  • Community Member
  • Posts: 61
  • Hero Points: 0
Formatting does not work with typedef struct
« on: August 09, 2020, 03:01:22 AM »
I have my formatting set to put brace on next line for struct and that is working as expected.
However if I have something like this
typedef struct {
   int foo;
   int bar;
} mystruct_t;

I am not able the beautifier to do the following:
typedef struct
{
   int foo;
   int bar;
} mystruct_t;

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Formatting does not work with typedef struct
« Reply #1 on: August 10, 2020, 01:38:01 PM »
I'll take a look at that.  It should follow the configured brace style there. 

photometer

  • Community Member
  • Posts: 61
  • Hero Points: 0
Re: Formatting does not work with typedef struct
« Reply #2 on: August 13, 2020, 02:39:21 AM »
Were you able to replicate this issue?

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Formatting does not work with typedef struct
« Reply #3 on: August 13, 2020, 01:22:10 PM »
Yes, it was easy to replicate.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Formatting does not work with typedef struct
« Reply #4 on: August 14, 2020, 08:13:11 PM »
Fixed for the next beta.