Eclipse won't acknowledge print margin column setting

Welcome to bug 468307, where your maximum line wrapping length is what matters.


2020-12-04:

I'm on eclipse-CDT version 2020-06 and the bug is still not fixed IMO.

  • the workaround is to modify the "Maximum line width" for your language
  • for example in C++: File --> Window --> Preferences --> C/C++ --> Code Style --> Formatter --> Edit --> Line Wrapping --> Line width and indentation levels --> click the "Maximum line width" textedit widget and modify the value to 80 or 100 or your desired value --> click "ok" (if your "ok" button is gray then read [gotcha-1] footnote)
  • other languages like Java require modifying the same "Maximum line width" but getting there might be different in the GUI

[gotcha-1] gotcha: if the "ok" button is gray then you have to edit the "Profile name:" because it does not let you override a default profile.

Tags:

Eclipse