Provides block and smart indentation in R code
Inheritance: ISmartIndent
Exemple #1
0
        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;
        }
Exemple #3
0
        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));
 }