Your comments

Thanks for the reply.


Tab size is equal to indent size when tabs are used for indentation, but that's not always the case. There's a lot of old code (and some new code) that assumes that tab characters are always 8 columns wide (as they should be), regardless of indent size. When viewing, or editing, those files you need some way to set the tab size back to 8, while keeping the proper indent size setting. Otherwise, the code becomes an unreadable mess.

In particular, the GNU style guide requires mixed space-tab indenting (or used to; I haven't looked in awhile), which is where the "prefer tabs over spaces" setting comes in. For example, in the case where indent size is 4, then the first level is indented with 4 spaces, the second with a single tab, the third with a tab and 4 spaces, and so on. Working with such files is a royal pain in any editor that doesn't support different tab and indent sizes.

Xcode handles all of this properly, so here's a screenshot of it's settings. I'm looking for something with the same functionality, but lightweight enough to be my default text editor.