Provides functionality for comment/uncomment lines in R editor document
Пример #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);
        }
Пример #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);
        }