Provides block and smart indentation in R code
Inheritance: ISmartIndent
Exemplo n.º 1
0
        public static SmartIndenter Attach(ITextView textView, IREditorSettings settings)
        {
            SmartIndenter indenter = ServiceManager.GetService <SmartIndenter>(textView);

            indenter = indenter ?? new SmartIndenter(textView, settings);
            return(indenter);
        }
Exemplo n.º 2
0
        public static SmartIndenter Attach(ITextView textView) {
            SmartIndenter indenter = ServiceManager.GetService<SmartIndenter>(textView);

            if (indenter == null) {
                indenter = new SmartIndenter(textView);
            }

            return indenter;
        }
Exemplo n.º 3
0
        public static SmartIndenter Attach(ITextView textView)
        {
            SmartIndenter indenter = ServiceManager.GetService <SmartIndenter>(textView);

            if (indenter == null)
            {
                indenter = new SmartIndenter(textView);
            }

            return(indenter);
        }
Exemplo n.º 4
0
 public ISmartIndent CreateSmartIndent(ITextView textView)
 {
     return(SmartIndenter.Attach(textView));
 }