Sublime Forum

Problem with multiline-completions and over-indentation

#1

Hi,
in a plugin for Python code I’m inserting multiple lines of text. The lines already include indentation.

When this text is inserted into the editor when I accept the completion item, then Sublime adds additional indentation to the inserted text. I already disabled all settings about indentation, but they don’t seem to change the behaviour of a completions indentation: smart_indent, auto_indent, indent_subsequent_lines.
I’ve already searched the api docs and this forum.

Question: Is there a way to control how Sublime handles indentation of multi-line completion text?

Thank you,
Joachim

0 Likes