File->settings->Editor->Code Style->看右边有一个Indents Detection

将Detect and use existing file indents for editing这一些的勾去掉,点击OK保存设置
Pycharm中的This file is indented with tabs instead of 4 spaces

相关文章:

  • 2021-11-21
  • 2021-12-08
  • 2021-05-23
  • 2022-12-23
  • 2021-04-09
  • 2021-07-23
猜你喜欢
  • 2021-08-19
  • 2021-10-23
  • 2021-07-02
  • 2021-10-21
  • 2021-04-28
相关资源
相似解决方案