pycharm convert tabs to spaces automatically

后端 未结 7 1244
一整个雨季
一整个雨季 2020-12-04 08:32

I am using pycharm IDE for python development it works perfectly fine for django code so suspected that converting tabs to spaces is default behaviour, however in python IDE

7条回答
  •  Happy的楠姐
    2020-12-04 09:12

    Change the code style to use spaces instead of tabs:

    spaces

    Then select a folder you want to convert in the Project View and use Code | Reformat Code.

提交回复
热议问题