Community
Participate
Working Groups
Under Preferences > General > Editors > Text Editors, I have "Insert spaces for tabs" checked. In any .cpp file I'm editing using Eclipse the auto-complete functionality doesn't seem to honor that setting though. If I type "void func() {" in the global scope of the .cpp file and hit Enter, Eclipse will insert a line break, a tab, a line break and a closing "}". Instead of the tab, it should be inserting spaces.
Oh, and another thing it's not honoring is the "Displayed tab width" from that same preference pane. I have it set to 2, but the tabs that it's inserting are indenting by 4.
CDT overrides the text editor settings in favor of more advanced code style settings. You'll find the overriding settings in the C/C++ > Code Style preference page. *** This bug has been marked as a duplicate of bug 206776 ***
Ah, I see. Thanks Anton.