Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you stop Eclipse from underlining functions?

Is there a way to disable the code-hint underlining in Eclipse?

enter image description here

I use an eclipse-based IDE for a dynamic language, so it gets annoying at times when it can't discover methods from classes in other folders, and it fills half my screen with distracting yellow lines.

like image 222
Mohamad Avatar asked Dec 28 '22 12:12

Mohamad


2 Answers

Search for "annotations" in the preferences pane. Select "warnings" (if that's what they are) and uncheck the "text" box.

like image 139
Alastair Maw Avatar answered Jan 04 '23 23:01

Alastair Maw


The reason methods which were not found are being underlined is because eclipse is automatically building your project as you're editing your code. The easiest way to stop eclipse from underlining methods is to stop the project form building automatically by disabling the option. To do so, deselect the option from the project menu: Project -> Build Automatically

The Eclipse Wiki also has alternative ways to disable autobuilding.

like image 38
Kiril Avatar answered Jan 04 '23 23:01

Kiril