indentOnInput

Extension that automatically re-indents the current line when the user types a character that triggers indentation changes (e.g. a closing brace).

Language data providers register "indentOnInput" Regex entries that are tested against the text from the start of the line to the cursor. When a match is found and the computed indentation differs from the current one, the line is re-indented.