CmdID

CmdID / Commands

autopep8

Format Python code according to the PEP 8 style guide. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Format a file to stdout, with a custom maximum line length

autopep8 path/to/file.py --max-line-length lengthIdentify

Format a file, displaying a diff of the changes

autopep8 --diff path/to/fileIdentify

Format a file in-place and save the changes

autopep8 --in-place path/to/file.pyIdentify

Recursively format all files in a directory in-place and save changes

autopep8 --in-place --recursive path/to/directoryIdentify