Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Tabs for indentation, spaces for alignment.


sort by: page size:

Tabs for indentation, spaces for alignment.

tabs for indentation, spaces for alignment

Tabs for indentation, spaces for alignment

Tabs for indentation, spaces for alignment. This is the way

Indent with tabs. Align with spaces.

Tabs for indent, spaces for alignment - solves the problem unless you're trying to align across indentation levels, but you probably shouldn't be.

I always heard "Tabs for indenting, spaces for aligning."

Tabs for indentation, spaces for alignment. This is my take.

I only can use it on personal projects, as most places I worked in use spaces.


Classic false dichotomy, it's both. Tabs for indentation, spaces for alignment.

Just use tabs for indentation and spaces for alignment.

Tabs for leading indentation, space for alignment would be my favorite combination. However, in practice, it seems too complex to enforce. So space everywhere is good enough.

I thought the consensus was tabs for block indentation, spaces for alignment.

tabs for indent, spaces for alignment works great with Python.

Tabs for scope, spaces for alignment.

Tabs are semantic. Using spaces for indentation is like using tables for layout.

Tabs for indentation, spaces for alignment. That way devs can set whatever tab length they prefer in their editors without messing up alignment.

You don't, you use tabs for indentation and spaces for alignment.

Tabs for indentation and not spaces =/

Tabs for indentation, spaces for alignment. This is the only sane standard.
next

Legal | privacy