【Python】Pycharmでインデントの設定を変える方法

Pycharmで、インデントにスペースとタブが混じっているとエラーになる。

TabError: inconsistent use of tabs and spaces in indentation

そこで、Pycharmで、インデントの設定を一括で変える方法

1つは、

Edit -> Convert Indents -> To Spaces or To Tabs

もう1つは、

ショートカット「Shift + Cmd + A」で、「Find Action」を開き、

to space または to tab と入力すると一覧に出てくる。

参考サイト