ewx: (poll)
Richard Kettlewell ([personal profile] ewx) wrote2007-04-03 01:26 pm
Entry tags:

(setq indent-tabs-mode nil)

[Poll #959499]

(Ignoring languages like make where you don't have any choice.)

[identity profile] cartesiandaemon.livejournal.com 2007-04-03 12:48 pm (UTC)(link)
Not to be mixed, at all costs? Otherwise, I don't mind so much. I'm sure one is better, but I have generally been constrained, so haven't found out which.
ext_78: A picture of a plush animal. It looks a bit like a cross between a duck and a platypus. (barcode)

[identity profile] pne.livejournal.com 2007-04-05 07:43 pm (UTC)(link)
Sounds good to me.

I tended to use four spaces, but at work we settled on tabs (since different people have different shiftwidth preferences, and tabs seemed to alleviate this a little) and that works fine.

As long as they're not mixed, in which case things will only look right at one shiftwidth setting.

And what is really bad is if code that uses mixed spaces and tabs gets edited by someone who has a different tabstop setting and automatically converts tabs to spaces on saving. I once had to work on such code, and it was a mess; I wish the original tabs had remained since then I could have fiddled with my tabstop setting to get it to look proper.