• DrDeadCrash@programming.dev
    link
    fedilink
    arrow-up
    13
    ·
    10 months ago

    If you’re using visual studio (2022 is current) the idiomatic styling will be mostly correct by default (Ctrl k,e will reformat).

    • brian@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      10 months ago

      I’ve found it to be less strict than I’d prefer. Things like whether parameters are aligned or indented, whether or not the first one is on its own line, what statements are indented in fluent calls that have blocks, etc.

      A lot of other formatters (prettier, anything for python, etc) force something consistent in those cases, whereas it seems like the dotnet formatter prefers to leave things as they were.

      I’d love for it to be more opinionated and heavy handed if anyone has suggestions