C# Class ShaderTools.VisualStudio.Hlsl.Editing.Commenting.CommentingExtensions

Show file Open project: tgjones/HlslTools

Public Methods

Method Description
CommentOrUncommentBlock ( this view, bool comment ) : bool

Private Methods

Method Description
CommentRegion ( ITextView view, SnapshotPoint start, SnapshotPoint end ) : void

Adds comment characters (//) to the start of each line. If there is a selection the comment is applied to each selected line. Otherwise the comment is applied to the current line.

DeleteCommentChars ( ITextEdit edit, ITextSnapshotLine curLine ) : void
IndexOfNonWhitespaceCharacter ( string text ) : int
IsHlslContent ( this buffer ) : bool
MapPoint ( ITextView view, SnapshotPoint point ) : SnapshotPoint?
UncommentRegion ( ITextView view, SnapshotPoint start, SnapshotPoint end ) : void

Removes a comment character (//) from the start of each line. If there is a selection the character is removed from each selected line. Otherwise the character is removed from the current line. Uncommented lines are ignored.

UpdateSelection ( ITextView view, SnapshotPoint start, SnapshotPoint end ) : void

Method Details

CommentOrUncommentBlock() public static method

public static CommentOrUncommentBlock ( this view, bool comment ) : bool
view this
comment bool
return bool