• @realharo@lemm.ee
    cake
    link
    fedilink
    10
    edit-2
    10 months ago

    I normally avoid that too, I find it hurts readability more than helps, plus a proper IDE will separate it with color anyway.

    But yeah, the newline comment doesn’t apply to this.

    • z3bra
      link
      110 months ago

      To each their own indeed. But my rule of thumb is: only use tabs when there’s no other character before it (aka, start of line).

      • Nate Cox
        link
        fedilink
        English
        110 months ago

        The emacs wiki agrees and has the correct take on this: https://www.emacswiki.org/emacs/SmartTabs

        It seems like this basic guideline, tabs to indent and spaces to align, solves the problem for everyone. It doesn’t matter what your tab width is, it’ll look “right” regardless.