October 8, 2010 | In: Programming, Python

Quick tip: How to control line length written in Eclipse

If you want to make your Python code more readable and valid with PEP8, you can set up an informational, vertical line in Eclipse at some character (eg. 79).

To do this go to Window->Preferences->General->Editors->Text Editors and enable “Show print margin option”, then enter a number in ‘Print margin column’

(This works with Eclipse 3.5.1)

Comment Form