Hi IntelliJ Community,
I’m working on implementing inline code completion using the com.intellij.codeInsight.inline.completion
API. While the InlineCompletionElement
interface provides skip
and insert
components for basic operations, I’m encountering scenarios where I need to: Delete existing characters or Replace specific ranges of text.
example:
// original
addThreeNumbers(x, y, z)
// user input
addTwoNumbers(x, y, z)
// we want to suggest
// delete ', z'
addTwoNumbers(x, y)
Questions:
- Is there a dedicated API or component for text deletion/replacement within inline completion?
2.If not, do you have any suggestions?