/// <summary> /// format given snapshot and apply text changes to buffer /// </summary> public static void FormatAndApplyToBuffer( this ITextSnapshot snapshot, TextSpan span, CancellationToken cancellationToken ) => snapshot.FormatAndApplyToBuffer( span, rules: null, cancellationToken: cancellationToken );
/// <summary> /// format given snapshot and apply text changes to buffer /// </summary> public static void FormatAndApplyToBuffer(this ITextSnapshot snapshot, IEnumerable <IFormattingRule> rules, CancellationToken cancellationToken) { snapshot.FormatAndApplyToBuffer(new TextSpan(0, snapshot.Length), rules, cancellationToken); }
/// <summary> /// format given snapshot and apply text changes to buffer /// </summary> public static void FormatAndApplyToBuffer(this ITextSnapshot snapshot, CancellationToken cancellationToken) { snapshot.FormatAndApplyToBuffer(new TextSpan(0, snapshot.Length), rules: null, cancellationToken: cancellationToken); }