Can I get func parenthesis when inserting from a comp list?

SyntaxEditor .NET Languages Add-on for WPF Forum

Posted 13 years ago by Craig - Varigence, Inc.
Version: 11.1.0545
Avatar
Let's say I type Console. in the Sample Browser's C# editor. I select WriteLine in the pop-up Completion List and press tab to insert the function name.

Is there any built-in capability to add parenthesis after the inserted function names, along with placing the cursor between the parenthesis? If not currently present, do you plan to add this in the future?

Thanks,

-Craig

Comments (1)

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

No, sorry, we don't have an option for that. What you can do though if you'd like to add it is override CSharpCompletionProvider.OnsessionOpening. That is called right before the session is about to open and its items are fully populated at that point. In that you could scan the items and look at their Tag for a method definition. If found, modify the item text that will be inserted to include the parens.


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.