Skip to content

2026.2 and comment wrapping #203

Description

@kevlar700

Thank you for the latest Gnat Studio improvements and release schedule

It can be quite a pain to reformat comments when making a small change and so having format file do it for you was rather neat.

I used to use 2 spaces

 usual comment that will wrap

Then 3 spaces/Ada Indentation for any lines that I didn't want to wrap and then go back to two spaces for wrapping again.

  wrapping comment
  this would wrap upwards upon "format file"
   this would not wrap up

This works with Gnat Studio 26.0w but not with 2026.2. Is there any wrapping functionality for comments in GNAT Studio 2026.2 or might this functionality re-surface at some point?

I have this in my .gpr which may be relevant

 package Pretty_Printer is
      for Default_Switches ("ada") use ("--eol=unix",
                                        "--call-threshold=1",
                                        "--par-threshold=1",
                                        "--no-compact",
                                        "--vertical-enum-types",
                                        "--vertical-named-aggregates",
                                        "--vertical-array-Types",
                                        "--vertical-case-Alternatves",
                                        "--comments-fill",
                                        "--comments-special",
                                        -- "--wide-character-encoding=8",
                                        "--separate-loop-then",
                                        "--separate-then",
                                        "--jobs=1");
   end Pretty_Printer;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions