Search code examples
ceclipsecoding-styleide

How to display characters per line in Eclipse


Is there an option in Eclipse or CDT to display the number of characters in each line of code or to highlight lines of code that exceed a specific length?

I am programming in C on Eclipse 3.7


Solution

  • I found it. Go to Windows -> Preferences. Select Text Editors in the dialog box, and check the "Show print margin" option. This will display a marker at a given column number that can allow the author to avoid exceeding a specific line length.