SnapshotSpan WrapWith(string prefix, string suffix, bool selectModified) { string s = View.GetFirstSelectionText(); var firstModified = View.WrapWith(prefix, suffix); if (s != null && Keyboard.Modifiers.MatchFlags(ModifierKeys.Control | ModifierKeys.Shift) && View.FindNext(_TextSearch, s, TextEditorHelper.GetFindOptionsFromKeyboardModifiers()) == false) { // } else if (selectModified) { View.SelectSpan(firstModified); } return(firstModified); }
protected static bool FindNext(CommandContext ctx, string t) { return(ctx.View.FindNext(ctx.TextSearchService, t, TextEditorHelper.GetFindOptionsFromKeyboardModifiers())); }