How can I get PyDev to automatically format the maximum number of characters per line?

I am using PyDev to program Python in Eclipse.

Is it possible to make PyDev automatically format my code to limit the maximum number of characters per line?

+5
source share
1 answer

With standard PyDev

This option seems to be available only in the Java Eclipse editor.

The Java editor allows you to create “profiles” for formatting code, and the PyDev options for formatting code are very limited.

However

. PythonTidy.py - script, Python, PEP8, .

PythonTidy ( )

( ) PythonTidy.

, , .

- COL_LIMIT , 72. PythonTidy, , .

PyDev

PyDev. , :

  • Jython PyDev (PyEdit) PythonTidy. script , , , 404.
  • , pyedit_pythontidy.py, PythonTidy.py.
  • PyDev script . > PyDev > Scripting PyDev

    • № 1: ,

    • # 2: script , , . , .

    • # 3: bear330 PyDev.

+6

All Articles