Posted 13 years ago by Matt Whitfield
Avatar
It might be good to be able to attach code snippets to intelliprompt member list items

For example - if I'm expanding DECLARE @variable then I prompt with a list of data types. What would be good is it after that list I could put up a code snippet which allowed the type parameters to be specified (e.g. DECLARE @variable [decimal] (|precision|, |scale|) ).

I am sure this is probably possible with the object model as is (if so - what would be your recommendation on how to do that?) - but if it were possible to effectively set an 'autocompletepostsnippet' member on intellipromptmemberlistitem then that might be the most elegant way of handling it?

Just a thought...

Comments (2)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Matt,

You could just attach to the SyntaxEditor.IntelliPromptMemberListClosed event and then based on the currently selected item when that event fires, show the related code snippet. You could even store code snippet data in the item's Tag property.


Actipro Software Support

Posted 13 years ago by Matt Whitfield
Avatar
Thanks :)