Spaces Instead of Tabs In Eclipse Indigo PDT Not Workinghttps://www.eclipse.org/forums/index.php/mv/msg/206365/660649/#msg_660649
I am using Eclipse Indigo PDT (But I had the same problem before in Helios).

I have set all tabs to display as 4 spaces and it's not working, Eclipse is still entering tabs!

I have the following settings, am I missing something?:

General > Editors > Text Editors

Set Display tab width to 4

Tick Insert spaces for tabs

Tick Show Print Margin

Set Print Margin Column to 120

General > Workspace

Set Text File Encoding to UTF-8

Set New Text File Delimiter to Unix

PHP > Code Style > Formatter

Set Tab Policy to Spaces

Set Indentation size to 4

PHP > Editor > Save Actions

Tick Remove trailing whitespace

Check All Lines

]]>PS Craig2011-03-20T16:43:13-00:00Re: Spaces Instead of Tabs In Eclipse Indigo PDT Not Workinghttps://www.eclipse.org/forums/index.php/mv/msg/206365/660654/#msg_660654
http://www.eclipse.org/forums/index.php?t=msg&th=94871]]>PS Craig2011-03-20T17:02:22-00:00Re: Spaces Instead of Tabs In Eclipse Indigo PDT Not Workinghttps://www.eclipse.org/forums/index.php/mv/msg/206365/663283/#msg_663283
https://bugs.eclipse.org/bugs/show_bug.cgi?id=326250]]>PS Craig2011-04-04T14:30:05-00:00Re: Spaces Instead of Tabs In Eclipse Indigo PDT Not Workinghttps://www.eclipse.org/forums/index.php/mv/msg/206365/855290/#msg_855290
]]>Bo Zimmerman2012-04-24T17:25:13-00:00Re: Spaces Instead of Tabs In Eclipse Indigo PDT Not Workinghttps://www.eclipse.org/forums/index.php/mv/msg/206365/993197/#msg_993197
The problem seems to be on auto-indent. Pressing the tab key will insert spaces. But pressing enter after, say, an if-statement which auto-indents it will insert tabs. This is super annoying.]]>Brian Detweiler2012-12-23T18:26:14-00:00Re: Spaces Instead of Tabs In Eclipse Indigo PDT Not Workinghttps://www.eclipse.org/forums/index.php/mv/msg/206365/996986/#msg_996986
"Window -> Preferences -> General -> Editors -> Text editors -> Insert spaces for tabs".
The other one is located in
"Java -> Code Style -> Formatter". In profile edition window "tab policy" can be chosen and also "use spaces to indent wrapped lines" can be checked. In my case that fixed the behavior you describes.
]]>Marta Musik2013-01-03T10:47:48-00:00Re: Spaces Instead of Tabs In Eclipse Indigo PDT Not Workinghttps://www.eclipse.org/forums/index.php/mv/msg/206365/1059910/#msg_1059910
Dani G2013-05-22T07:23:34-00:00Re: Spaces Instead of Tabs In Eclipse Indigo PDT Not Workinghttps://www.eclipse.org/forums/index.php/mv/msg/206365/1059983/#msg_1059983
Marta Musik wrote on Thu, 03 January 2013 05:47

There are two settings affecting spaces vs tabs. One is where you mentioned:
"Window -> Preferences -> General -> Editors -> Text editors -> Insert spaces for tabs".
The other one is located in
"Java -> Code Style -> Formatter". In profile edition window "tab policy" can be chosen and also "use spaces to indent wrapped lines" can be checked. In my case that fixed the behavior you describes.

This did not fix the issue in the PDT version.
]]>PS Craig2013-05-22T12:49:39-00:00Re: Spaces Instead of Tabs In Eclipse Indigo PDT Not Workinghttps://www.eclipse.org/forums/index.php/mv/msg/206365/1103972/#msg_1103972
Project/Properties/Java Code Style/Formatter