Editor の反応を スペース2 仕様にする。
Setting
  ↓
Editor
  ↓
Code Style
  ↓
Python
Tabs and Indents のタブから 4 → 2, 8 → 4 に変更。

IDEA の 文法チェック周りを調整する。
Setting
  ↓
Editor
  ↓
Inspections
  ↓
PEP8 coding style Violations
Options Ignore error に E111, E114 を追加する。

E111 indentation is not a multiple of four
E114 indentation is not a multiple of four (comment)
👉 Introduction — pycodestyle 2.7.0 documentation 
👉 【Pythonコーディング規約】PEP 8 vs Google Style - Qiita 
👉 styleguide | Style guides for Google-originated open-source projects 
まあ、しかし、スペース 4 のほうが今はまだ主流ですよな。
👉 path:**/setup.cfg flake8 ignore - Code search results · GitHub 
👉 Flake8: Your Tool For Style Guide Enforcement — flake8 6.0.0 documentation 
【IDEA】Python Code Style インデントをスペース2 に設定する https://t.co/oV3u1lxUQx #python #pep8 #プログラミング #idea #pycharm
— chanzmao (@maochanz) December 28, 2022
 
関連ワード: AndroidStudio・Google・IDEA・JetBrains・python・おすすめ・ツール・今さら聞けない・便利な設定・評判・開発
 
		 
          