resym icon indicating copy to clipboard operation
resym copied to clipboard

New Formatting Options

Open HaydnTrigg opened this issue 10 months ago • 2 comments

  • Added a "General" and "Formatting" tab to settings
  • Added option for "Print size comments"
  • Added option for "Print offset comments"
  • Print access specifiers changed from boolean to [Disabled, Always, Automatic]

The new automatic behavior of print access specifiers is to always print them for classes, but for structures and unions it only prints if there is a non-public access specifier. This makes it a lot easier to copy-paste things without having to delete all of those pesky public: statements.

Settings has tabs for "General" and "Formatting". Red dots highlight changes. image

User can optionally disable size and offset comment generation and also control the bracket formatting option too. image

HaydnTrigg avatar Feb 12 '25 18:02 HaydnTrigg

Hey, thanks for the new MR! I'll try to find some time to review it soon!

ergrelet avatar Feb 17 '25 20:02 ergrelet

No rush, I've identified a bug with handling the output of classes today when using the automatic access specifier option. It's supposed to always display them for classes but for some reason public isn't being printed for member variables.

I'll submit a fix soon.

HaydnTrigg avatar Feb 19 '25 03:02 HaydnTrigg

Still working on solving problems but closing for now and will resubmit a PR in the future with all of the changes we're making in the ChimpsAtSea fork.

HaydnTrigg avatar Sep 24 '25 13:09 HaydnTrigg