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
  • 25,042
  • 81
  • 346
  • 663

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
  • 92,896
  • 20
  • 260
  • 197