implementing "inline" suggestions [message #1857456] |
Wed, 08 February 2023 15:10 |
Amir Tuval Messages: 1 Registered: February 2023 |
Junior Member |
|
|
I am a newie to eclipse plugin developent, so apologies if I'm missing something obvious :-)
Eclipse already has code completion implemented as a drop down window.
In my plugin, I'm looking to implement inline completions.
This is similar to features available in other editors, such as vscode or nvim.
Basically, the suggestion appears inline in gray. The user can accept it by hitting tab or enter, and it disappears if the user types something else.
Note that the suggestion might be a full line of text or even multiple lines of text.
So it needs to push to the right any code that appears in the same line after the suggestion, and it needs to push down lines when the suggestion is more than one line.
How would you go about implementing something like this? Any tips or pointers to documentation would be much appreciated.
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.02958 seconds