Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » implementing "inline" suggestions
implementing "inline" suggestions [message #1857456] Wed, 08 February 2023 15:10
Amir Tuval is currently offline Amir TuvalFriend
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
Previous Topic:How to use packages with different versions
Next Topic:Calling Extension Point Schema Compiler Headless
Goto Forum:
  


Current Time: Sat Apr 27 14:55:05 GMT 2024

Powered by FUDForum. Page generated in 0.02785 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top