How to achieve such virtual selection?

SyntaxEditor for WPF Forum

Posted 3 months ago by Chris
Version: 24.1.1
Avatar
var list = new List<int>();

list.Select(x)

When I type "(", the auto-complete list pops up, and then when I type x, the matching item will be automatically selected, and vs will have a virtual selected item. How can I achieve the same effect as vs?

Comments (1)

Posted 3 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Our IntelliPrompt completion list should already support that kind of thing.  When your completion provider opens a completion session, it can pass in a text range with within to initialize the selection.  In a case like what you describe, you'd pass in the text range of the "x" identifier.  If any item starts with "x", it will be automatically partially selected.  Or if there is an item that only has text "x", it will be fully selected.

Our documentation on completion lists is here and our samples show many use case scenarios in them.


Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.