How can I change the color that highlights the current line in a source code file?

To change the color for the current line highlight in a source file:

  1. Select Window > Preferences .

    The Preferences dialog box appears.

  2. Type text editor as the filter text to narrow down the list of preferences.
  3. Select General > Editors > Text Editors .

    The Text Editors page appears in the right panel.

  4. Ensure that Highlight current line checkbox is checked.
  5. Select Current line highlight in the Appearance color options list.
    Figure 1. Text Editors Page > Current line highlight Selected

    Text Editors Page > Current line highlight Selected

  6. Click the Color button to open the color panel, and select the required color.
  7. Click OK to close the color panel.
  8. Click OK to save the settings.

The current line highlight color changes, as specified.