IntelliPrompt MemberList virtual select unless exact

SyntaxEditor for Windows Forms Forum

Posted 12 years ago by Justin Harrell
Avatar
We are adding IntelliPrompt to a SQL editor. So far it is working pretty well, but SQL being such an ambiguous language we would like the member list to be less aggressive with matching.

Right now it works like Visual Studio with a begins with match going to a virtual match on the last match if nothing is found.

What we would ideally like is to have the member list virtual select on begins with and only fully select on exact match. This way if the list has an entry to use a down arrow will select it, but otherwise it will not try to overwrite when a space is pressed.

Is there any way to accomplish this?

Comments (3)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Justin,

We can see about adding an option for that. There's nothing in there that would do it at the moment. Any good ideas on property names for the option?


Actipro Software Support

Posted 12 years ago by Justin Harrell
Avatar
I am not sure what the best name would be, perhaps BeginsWithFullSelect which defaults to true.

We decided for now to have a persistent setting to disable the auto member list, as it may get annoying to some, but it can still be invoked with CTRL-SPACE. This is how VS and SQL management studio work.

It is interesting that SQL Management Studio has the same issues, they don't seem to be doing much magic. The most common problem is aliasing tables with short names, such as

select t.field from table1 t

When typing that statement t will almost always get replaced with something in the memberlist, the only way to prevent it is to hit esc before hitting space to cancel.

[Modified at 10/11/2011 08:16 PM]
Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Justin,

We'll try to add a new RequiresExactMatch option for the next maintenance release. You'll be able to set that to true to get your desired behavior.


Actipro Software Support

The latest build of this product (v24.1.0) 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.