Use InlayHints to show code suggestion
Answered
I wanna use InlayHints to suggest code whenever a key is typed and use a key (eg Tab) to implement it into the editor. Please suggest how to do it.
Please sign in to leave a comment.
Please consider using experimental EP
com.intellij.codeInsight.inline.completion.InlineCompletionProviderinstead.InlineCompletionProvider only shows 1 line where as the suggestion could be longer
The issue has been resolved and will be available in the upcoming (233) release. Currently, the suggestion from the inline provider will be shortened to a single line if a completion lookup is displayed.
com.intellij.codeInsight.inline.completion.InlineCompletionProvider
@Kirill Do you mean the above EP will be available to be extended only from 23.3 release?
Is there any alternative to achieve the same functionality in 22.2+ releases?
`InlineCompletionProvider` API is available since 2023.2 IDE releases only.