如何在IntellijIdea Scala插件中禁用方法返回类型提示

Tom*_*Tom 5 scala intellij-idea

Intellij Idea scala插件会自动以灰色显示该方法的返回类型,这在大多数情况下很烦人。

如何取消此功能

sui*_*ish 8

This feature has been added in IntelliJ IDEA 2018.1

The editor can now show inline hints for parameter names, method result types, and variable types. You can also easily use the settings to customize when such a hint should be shown.

You can disable it from Preference -> Editor -> General -> Appearance

如何切换Scala函数返回类型提示

Uncheck "Show function return type hints(Scala)"

Or simply right click on the type hints

在此处输入图片说明

And click on Function return type hints

Once you disable it, the former way is the only way to re-enable it.