Exemplo n.º 1
0
        protected override void Run()
        {
            for (int i = 0; i < Count; i++)
            {
                MiscActions.IndentSelection(Editor);
            }

            RequestedMode = Mode.Normal;
        }
 bool IEditorOperations.Indent()
 {
     if (widget.TextEditor.IsSomethingSelected)
     {
         MiscActions.IndentSelection(widget.TextEditor.GetTextEditorData());
     }
     else
     {
         int offset = widget.TextEditor.LocationToOffset(widget.TextEditor.Caret.Line, 1);
         widget.TextEditor.Insert(offset, widget.TextEditor.Options.IndentationString);
     }
     return(true);
 }
Exemplo n.º 3
0
 protected override void Run()
 {
     Motion.SetSelectLines(Editor, Editor.Caret.Line, Editor.Caret.Line);
     MiscActions.IndentSelection(Editor);
     Editor.ClearSelection();
 }