Sublime Forum

How to insert line feed and indentation

#1

Just to confirm, how do I add line feed and indentation in the plugin?

For example: self.view.insert(edit, 0, "Hello, World!")

How do I insert a line feed and indentation after the Hello, World!? Do \n represetns line feed and \t represents indetation?

So it looks like: self.view.insert(edit, 0, "Hello, World!\n\t")

Is this correct? Thank you in advance.

0 Likes

#2

Looks good to me.

1 Like