Provides functionality for comment/uncomment lines in R editor document
Exemple #1
0
        public override CommandResult Invoke(Guid group, int id, object inputArg, ref object outputArg)
        {
            SnapshotSpan selectionSpan = TextView.Selection.StreamSelectionSpan.SnapshotSpan;

            RCommenter.CommentBlock(TextView, TextView.TextBuffer, new TextRange(selectionSpan.Start.Position, selectionSpan.Length), Shell.Services);
            return(CommandResult.Executed);
        }
Exemple #2
0
        public override CommandResult Invoke(Guid group, int id, object inputArg, ref object outputArg)
        {
            var selectionSpan = TextView.Selection.StreamSelectionSpan.SnapshotSpan;

            RCommenter.CommentBlock(TextView.ToEditorView(), TextView.TextBuffer.ToEditorBuffer(),
                                    new TextRange(selectionSpan.Start.Position, selectionSpan.Length), Services.GetService <IEditorSupport>());
            return(CommandResult.Executed);
        }