title: How to get spaces instead of tabs in eclipse
body: <p>After doing a little research, I found out that eclipse hides its settings in multiple levels. So, I think, I got all the levels covered here.</p>
  <p>Here I have set eclipse to insert spaces instead of tabs. And eclipse even acknowledges there that I have indeed set it up to insert 4 spaces instead of a tab (See the text under <strong>Tabulators</strong>: it says, <em>&quot;The current indentation size is 4, using spaces&quot;</em>).
  <a href="https://i.stack.imgur.com/TTtm3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TTtm3.png" alt="Tab Settings for C/C++" /></a></p>
  <p>Then for the general text editor, I have also set it up to insert spaces instead of the tabs.
  <a href="https://i.stack.imgur.com/oH1MH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oH1MH.png" alt="General Tab Settings" /></a></p>
  <h3>And eclipse couldn't have gotten things more wrong even if it had tried!</h3>
  <ol>
  <li><p>Unfortunately, despite all those settings, when I press tab, eclipse inserts 2 spaces. Then, I press tab again, and it inserts 2 spaces. Why 2 spaces? Are there still more hidden settings somewhere?</p>
  </li>
  <li><p>Anyways, this broken system works a bit, until I have one level more of indentation, for example, for a for-loop or an if-block. If I press, tab again, instead of adding 2 more spaces, it converts the 6 spaces into a tab.</p>
  </li>
  <li><p>And a tab which is not even 4 spaces wide, but instead a tab which looks like a 6- or 8-spaces wide tab.</p>
  </li>
  <li><p><kbd>Ctrl</kbd> + <kbd>I</kbd> also adds tabs, not spaces.</p>
  </li>
  </ol>
  <p>The formatter is also setup as <a href="https://stackoverflow.com/a/66116372/4298200">@Neuron suggested in his answer</a>.
  <a href="https://i.stack.imgur.com/Wqzmi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wqzmi.png" alt="Formatter" /></a></p>
  <p>So, where else is eclipse hiding more settings?
  <a href="https://i.stack.imgur.com/a9wN4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a9wN4.png" alt="2nd level indentation is automatically TAB" /></a></p>