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

Does it support tabs for indentation yet?


sort by: page size:

Both of those support using the tab key to indent with tabs. In fact you can even configure the GitHub one to use tabs or spaces.

Or it asks the user to use tabs? Or an editor that inserts spaces when you press tab? Indentation has never been a stumbling block for anyone but the most junior of programmers.

Tabs are not allowed for indentation.

Unfortunately, no I haven't found anything like that, and it's definitely a sore spot. The tabbing issues for indented lists perpetually confound me, and I'm not sure why. Many articles use different indentation, and it makes me do a double take to figure out if I'm understanding it correctly.

This already exists when tabs are used for indentation.

I would like to, but I hate tabs (due to the jumps it causes in horizontal cursor navigation, and also due to the nonlinear behavior when inserting/deleting characters preceding a tab in a line), so I would need an editor that widens spaces at the start of line to get sufficient visual indentation at four spaces.

I can't find anything in the docs about indentation rules. Are tabs required (as in Make)?

I don't want that though, because then I still have to mess around with spaces when editing.

I actually like tabs for indenting levels especially because I can configure how far they indent on the fly.


The indentation I use cannot be expressed through tabs, unless they're of width 1, which defeats the purpose.

Not really, because it would screw up alignment (tabs can only be used for indentation, alignment needs spaces).

Yea except spaces suck for indentation. Tabs 100% for the win. Suck it.

Tabs for indentation and not spaces =/

Yes, indentation is done just with spaces. Tabs are not used. Typically you set your text editor to have the tab key print 4 spaces.

Yes, but tabs or spaces?

Yes! Tabs for indentation, and spaces for alignment.

There is no other sane way


Tabs for indentation, spaces for alignment.

Tabs for indentation, spaces for alignment.

Yes I’m only considering indentation now. Tabs vs spaces for indentation feels like it has reasonable arguments both ways but tabs for alignment just feels wrong tbh. Never even considered it a possibility in source code (and never saw it in the wild).

I have never once — in a career as a professional programmer that is coming up on 30 years — needed to insert a literal tab character in a document I’m writing. Not once. I’ll check out the bindings control panel, but in the past (as of maybe v12) it has not been possible to always force the tab key to indent the current line.
next

Legal | privacy