How do I activate type annotations hints in Kotlin like depicted?

后端 未结 3 1344
梦毁少年i
梦毁少年i 2021-01-31 16:38

I was able to activate this option once in my MacOS intellij version, but could never find this option anymore, I forgot its name.

I know there is the CTRL+SHIFT+P alter

3条回答
  •  忘掉有多难
    2021-01-31 16:47

    Adding to @Simulant and @zero answers

    In the latest version of IntelliJ (2020.3) you need to go to Settings -> Editor -> Inlay Hints where you can specify "Show hints for" (for specific language) and then in Settings -> Editor -> Inlay Hints -> Kotlin -> Parameter hints -> Types you can specify what type of hints you want.

提交回复
热议问题