reformat in pycharm code example Example: pep8 pycharm shortcut Ctrl+A then Ctrl+Alt+L or Ctrl+Alt+Shift+L