Home > Shared Source, Visualization > Shared Source – Comment Painter

Shared Source – Comment Painter

September 22nd, 2010

The Comment Painter feature draws a bubble icon over the comment “//” symbols in CSharp, or “ ‘ ” (single quote) in Visual Basic. The source code of this feature shows how to paint bitmaps on the code editor. If the comment is active (e.g. text caret is located inside the comment) then no icon is drawn, allowing you edit the comment.

CodeRush Comment Painter preview

The feature resides in the open source “CR_CommentPainter” plug-in sample from the Shared Source solution.

On the “Editor\Painting\Comment Painter” options page in the Options Dialog, you can enable or disable this feature. By default, this feature is installed but inactive (disabled). You’re also able to quickly enable/disable this feature on the DXCore Visualize toolbar:

CodeRush Comment Painter Toolbar item

Products: CodeRush Pro
Versions: 9.1 and up
VS IDEs: any
Updated: Dec/23/2010
ID: C025

Similar Posts: