Lets take a
val m = "Scala is fun"
IntelliJ helps figure out a lot of things that can be done with this

Is there a way for me to know which of these functions come from Scala and which ones come from Java?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In IDEA’s autocompletion, bold entries are methods defined on the type of the object itself, while underlined functions are added by implicit conversions and pimp-my-library (for explanation, see for instance here or search on StackOverflow or Google).
However, for the special case of types which are defined in Java (like
String, the type ofm), you happen to be right on the Java-vs-Scala distinction: there bold methods are real methods, which must be defined within the type ofm(hereString) and thus in Java. While pimp-my-library is a Scala pattern, so typically underlined functions will be written in Scala (this is just a rule of thumb, but I’ve never yet seen an exception).Non-bold functions are simply inherited.
For the amount of documentation, as a rule of thumb the Java standard library has quite comprehensive documentation (it’s supposed to be a specification for the method) while Scala varies typically between less and much less documentation.
I’ve searched for how to change the fonts used for this highlighting in IntelliJ 11, but I’ve not found much – you can change fonts used to highlight the code, but I suspect that doesn’t make a difference here.