Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get Intellij to stop underlining my scala code?

Basically, Intellij is making my code extremely hard to read by underlining lots of my code. It kind of makes a chess board on the left of my screen as well! =>

Too many underlines!

I have looked through the code editor settings but I can't find one under scala which controls these underlines. I am using the twilight theme but I have only just noticed the issue. Any ideas Intellij buffs?

like image 571
Noel Kennedy Avatar asked Nov 10 '11 15:11

Noel Kennedy


People also ask

Why is my variable underlined in IntelliJ?

If the variable/parameter is underlined, you know that you can't use it in lambda/anonymous class directly.

How do I use Scala code in IntelliJ?

tip. To install Scala plugin, press Ctrl+Alt+S , open the Plugins page, browse repositories to locate the Scala plugin, click Install and restart IntelliJ IDEA. Now you can successfully check out from VCS, create, or import Scala projects.

Can you run Scala in IntelliJ?

Run Scala applicationsYou can run your Scala code through IntelliJ IDEA, use sbt shell, or use Scala worksheet for a quick code evaluation.

How do I turn off underline in PyCharm?

Go to file->settings->editor and click on Inspections then you can see Spelling, uncheck the checkbox corresponding to that and click apply and OK.


2 Answers

IntelliJ 12:

Settings -> Editor -> Colors & Fonts -> Scala -> Implicit Conversions Uncheck "Effects -> Underline"

IntellIJ 11 or Before:

Settings -> Code Style -> Scala -> Other -> Other settings -> Highlight methods added via implicit conversion. However anyway it's usability problem of this feature. Something different should be done to highlight implicit conversion for such places.

like image 156
Alefas Avatar answered Sep 22 '22 14:09

Alefas


The attributes used for different kinds of highlighting are configured under Settings | Editor | Colors & Fonts.

like image 26
yole Avatar answered Sep 25 '22 14:09

yole