title: VS Code autoformats Python code to use 2 tabs
body: <p>For some reason Visual Studio Code looks like it's foramtting my code to use 2 tabs. I've changed my <code>settings.json</code> to use 2 spaces for tabs, which I've verified by pushing the tab button and it uses 2 spaces, as expected. However, 4 spaces (or 2 tabs) are still being used for Python indentation, as you can see in this picture:</p>
  
  <p><a href="https://i.stack.imgur.com/4G9br.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4G9br.png" alt="enter image description here"></a></p>
  
  <p>You can see that it's using two (2 spaced) tabs. I've looked at every Stack Overflow post I can find on configuring VS Code Python formatting and nothing I do works. It still autoformats to look like this. This is my <code>settings.json</code>:</p>
  
  <pre><code>{
    "python.pythonPath": "venv/bin/python3",
    "python.linting.enabled": true,
    "editor.tabSize": 2,
    "editor.formatOnSave": true,
    "editor.detectIndentation": false
  }
  </code></pre>
  
  <p>Does anyone know what's going on? For non Python files it works fine, so I don't know if this is something going on with pylint. This is driving me crazy.</p>