Auto insert comments ?

SyntaxEditor for Windows Forms Forum

Posted 12 years ago by BLANC Stéphane - Staubli Robotics Suite Product Manager, STAUBLI
Version: 4.0.0262
Avatar
Hello,

Is it possible to configure the SyntaxEditor in order to automatically insert the commentDelimiter on a new line (like in Visual Studio) ?

Example :
If the user enters
/// A comment on a line and then press enter,
it automatically add /// at the beginning of the new line ?

/// A comment
///

Regards

Stéphane

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
The C# language in the .NET Languages Add-on already does this, or do you mean the free dynamic C# language? If you mean the latter, then you'd have to handle KeyTyped, look for an Enter keypress and if you are in an XML comment, insert the appropriate indentation and /// characters.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 10 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.