• zea
    link
    fedilink
    arrow-up
    12
    ·
    8 months ago

    Change your tab width, but tabs are literally made for indentation.

    • BeigeAgenda@lemmy.ca
      link
      fedilink
      arrow-up
      3
      ·
      8 months ago

      The reason I loathe tabs is that over time a codebase with tabs becomes mixed tabs and spaces and unless your editor shows tabs you can’t see them.

      In the end you have to choose either spaces or tabs, and enforce it with some lint tool.

      • Luvon@beehaw.org
        link
        fedilink
        arrow-up
        4
        ·
        8 months ago

        That last line is the solution though, choose a linter, enforce all style arguments, so they are just the way the code is. No arguments.

        Every single project I work on is setup with prettier. With Java there is a maven plugin that runs it on compile. And with ts projects it is part of the built pipeline.

        I wish I could use prettier for Abap, reminds me how much I like having an opinionated formatter. I don’t like wasting time formatting code manually.

        Abap has one formatter that is not very opinionated, and lets way more to much wierd spacing through, especially for a language that is as verbose as abap.