How to set Python language specific tab spacing in Visual Studio Code?

前端 未结 3 871
独厮守ぢ
独厮守ぢ 2021-02-03 17:51

Using VSCode 1.9.0 with the (donjayamanne) Python 0.5.8 extension, is it possible to provide Python specific editor options?

Or more generally speaking,

3条回答
  •  迷失自我
    2021-02-03 18:01

    I had the same problem today.
    This is how I fixed it. Add this lines in setting.json in VSCode:

    "[python]": {
      "editor.insertSpaces": true,
      "editor.tabSize": 4  
    }
    

    It works like a charm.

提交回复
热议问题