With Eclipse Luna SR1 (4.4.1) on MacOS 10.9, I have set up in Preferences > DDT > Editor > Typing
Tab policy: Spaces only
Displayed tab size: 2
Indentation size: 2
but when I hit the Tab key, a tab is inserted instead of 2 spaces. I am sure because I set up Eclipse to display the tab characters everywhere. For the record, I managed to get C++ code to indent with spaces by going to Preferences > C/C++ > Code Style > Formatter and then editing the active profile.
With Eclipse Luna SR1 (4.4.1) on MacOS 10.9, I have set up in Preferences > DDT > Editor > Typing
but when I hit the Tab key, a tab is inserted instead of 2 spaces. I am sure because I set up Eclipse to display the tab characters everywhere. For the record, I managed to get C++ code to indent with spaces by going to Preferences > C/C++ > Code Style > Formatter and then editing the active profile.