Ace API Reference
    Preparing search index...

    Function detectIndentation

    • Detects the indentation style of a document and configures the session accordingly.

      Parameters

      • session: EditSession

        The editing session to analyze and configure

      Returns {} | { ch?: string; length?: number }

      An object containing detected indentation details (character and length)