0

Is there a way to script PyCharm to do reformat code without a GUI?

I have a lot of legacy python code, and I would like to clean it automatically.

guettli
  • 23,964
  • 63
  • 293
  • 556

1 Answers1

3

You can run format.bat or format.sh from the IDE installation directory. See the documentation for more details on supported options.

yole
  • 87,251
  • 17
  • 245
  • 186