Domanda

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.

È stato utile?

Soluzione

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

Altri suggerimenti

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.

You will also find Syntax Colouring in Eclipse for most languages. You will often find that you can turn on/off underline and strikethrough in these sections.

For example, when viewing PHP files in Eclipse you may find that Parameter Variables are underlined (e.g. variables passed into function). If you find this annoying (like me) then go to Preferences->PHP->Editor->Syntax Colouring, select Parameter variables and untick "underline" on the right. Confusing I know, as underlining is not Syntax Colouring.

Preferences- loading=PHP->Editor->Syntax Colouring">

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top