The C/C+ document type has the "Tabs as spaces" option checked. I assume that this option means that the tab character should never be inserted when pressing tab, but rather a number of spaces will be inserted.
I am seeing tab characters inserted when this option is checked.
The behavior is not consistent. Sometimes it inserts spaces, sometimes tabs. I haven't been able to work out any hard rules. It does seem like tabs will be inserted more often if the line already has tabs in it. It also seems to affect template actions if the start of the template already had a tab in it. Furthermore, if text cut from another source containing text is pasted, the tabs remain and seem to trigger future tab insertion.
I can give you one recreate scenario:
- Open a C document.
Paste a line with a tab followed by a '{' (open bracket) from another file.
Press enter after the '{'. The template completion will contain tabs.
I really don't want any tabs to exist in the document, ever, if Tabs as spaces is checked. Is this what you intended?
Ben
Note: I can work around this by doing a blank replace '\t' with spaces from time to time.