VS Code Python format

Add extension: autopep8

Set line length in autopep8

  • extensions->autopep8>>extension settings

  • Autopep8: Args

  • Add Item: --max-line-length=180

  • OK

Set line length in Black-formatter

  • extensions->black-formatter>>extension settings

  • Autopep8: Args

  • Add Item: --line-length=120

  • OK

Last updated