Auto completion

SyntaxEditor for WPF Forum

Posted 1 month ago by Dirk Zellerfeld
Avatar

I think a cool feature would be auto completion with text preview similar to Visual Studio where when you type something it makes a suggestion how to complete the line of code. And now with Github Copilot it even suggest multiple lines. And when you press TAB you accept this suggestion.

The suggested text is drawn as semi transparent so you can immediately see it while typing which is much better than the intelliprompt and the main reason for this suggestion

[Modified 1 month ago]

Comments (3)

Posted 1 month ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Dirk,

That kind of thing usually requires AI backing it.  If you have such a mechanism, you should be able to use intra-text adornments for the UI end of this kind of feature.  I believe we have another customer who is doing so.  Then you'd have to watch for Tab key presses with an event sink and take appropriate action when that occurs.


Actipro Software Support

Posted 1 month ago by Dirk Zellerfeld
Avatar

I dont mean you to provide the text which is shown. What I'm asking is a feature which allows us to add these text on our own. It is possible to retrieve the current word, the current line and the overall text. But it's quite difficult to draw the text suggestion, even with using the  intra-text adornments. It would be cool if we only have to provide the text to the editor control and flip a switch to show/hide the text suggestion. As an extra the editor could also handle the tab key event if the switch is on but this is only a few lines of code which I don't mind writing myself.

Posted 1 month ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Dirk,

Ok we'll log it as a suggestion to build in a wrap of some of those features.


Actipro Software Support

The latest build of this product (v24.1.3) was released 9 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.