public void AltRight() { SyntaxTreeNode node = ActiveNode.GetFirstChildAt(new SnapshotSpan(TextView.Caret.Position.BufferPosition.Snapshot, new Span(TextView.Caret.Position.BufferPosition.Position - 1, 1))); if (node == null) { return; } ActiveNode = node; TextView.Caret.MoveTo(ActiveNode.GetHeaderPosition(TextBuffer)); }
public void AltLeft() { SyntaxTreeNode node = ActiveNode.GetParent(); if (node == null) { return; } ActiveNode = node; TextView.Caret.MoveTo(ActiveNode.GetHeaderPosition(TextBuffer)); }