Is there a way for code to add text to specific line in TextEdit? I can't find anything in the docs. There is get_line ( int line ), but I would need set_line(int line) if there was one.

It looks like there is a set_line function in the source code on GitHub, but it has not been exposed to GDScript. I would suggest opening a proposal on the proposal repository to expose the function so it can be used.

That one might actually count as a bug, if the function exists and isn't exposed it's probably an oversight. Or so I would think anyways.

Thanks TwistedTwigleg and Megalomaniak

If you've confirmed that @Dankan1890's solution works as intended then please consider marking the post as the answer. This way someone else with the same issue might find it a little more easily. Thanks.

9 days later

The above solution does work in a pinch. However if the set_line function exists but is not exposed to GDScript I would like to notify the developers. How do I do this? I have a Github account but not sure how to make a pull request. What category do I choose and what do I select under "compare changes"?

Oh, you made a fix? Or you are looking to just report an issue?

Pull requests are for when you have forked the repo and made changes you would like to see merged(or 'pulled') back in.

To open a new issue first check the issues tab on the repo page and then search there to see if someone else has already reported the issue, if not then you press the new issue button and create a new one.

Thanks @Megalomaniak ,

I just want to report the issue. The set_line function is in the source code but just not implemented.

3 years later