• Eavolution@kbin.social
    link
    fedilink
    arrow-up
    12
    arrow-down
    1
    ·
    1 year ago

    It goes on the line! If you put it below, you’re wasting a line for no extra readability!

    • GNU/Dhruv
      link
      fedilink
      arrow-up
      11
      arrow-down
      1
      ·
      1 year ago

      It goes on the next line, so you can have open and close brackets at the same indent depth for easy visual matching.

      • Steeve@lemmy.ca
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        Your closing } goes on a new line below at the same indent depth as the line containing the open {!

      • TheInsane42
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        This, as it also helps when using % to go to the matching open/close bracket when the cursos doesn’t jump all around the place…