public static SmartIndenter Attach(ITextView textView, IREditorSettings settings) { SmartIndenter indenter = ServiceManager.GetService <SmartIndenter>(textView); indenter = indenter ?? new SmartIndenter(textView, settings); return(indenter); }
public static SmartIndenter Attach(ITextView textView) { SmartIndenter indenter = ServiceManager.GetService<SmartIndenter>(textView); if (indenter == null) { indenter = new SmartIndenter(textView); } return indenter; }
public static SmartIndenter Attach(ITextView textView) { SmartIndenter indenter = ServiceManager.GetService <SmartIndenter>(textView); if (indenter == null) { indenter = new SmartIndenter(textView); } return(indenter); }
public ISmartIndent CreateSmartIndent(ITextView textView) { return(SmartIndenter.Attach(textView)); }