vscodeでPythonコードを書いているときに、ファイルSaveする際に、
Indent のサイズが2に変更されていて困っていた。
Setting.jsonを見返してみると・・・
autopep8Args の箇所の–indent-size が2となっていたので、
これが原因っぽい。
なので、この数字(2)を(4)へ変更しておく
1 2 3 4 5 6 7 8 9 10 |
"python.formatting.autopep8Args": [ "--indent-size=2", "--ignore=E402", ], "[python]": { "editor.tabSize": 4, // indent level to 4 "editor.formatOnSave": true, // at saving, format "editor.formatOnPaste": false, // don't format on paste "editor.formatOnType": false, // don't format on typing }, |