Use InlayHints to show code suggestion

已回答
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.
0

Please consider using experimental EP com.intellij.codeInsight.inline.completion.InlineCompletionProvider instead.

0

InlineCompletionProvider only shows 1 line where as the suggestion could be longer

0

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.

0

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?

0

`InlineCompletionProvider` API is available since 2023.2 IDE releases only.

0

请先登录再写评论。