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

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

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

            return indenter;
        }
示例#3
0
        public static SmartIndenter Attach(ITextView textView)
        {
            SmartIndenter indenter = ServiceManager.GetService <SmartIndenter>(textView);

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

            return(indenter);
        }
示例#4
0
 public ISmartIndent CreateSmartIndent(ITextView textView)
 {
     return(SmartIndenter.Attach(textView));
 }