It is under Window / Preferences / Editors / Text Editors:

In older versions it was under Window / Preferences / General / Editors / Text Editors.
But as @simhumileco pointed out, there is a shortcut in the context menu when you right-click the left gutter of the editor.