How to continue the string when hitting enter in vs code

Viewed 35

I am currently using PyCharm where my strings keep being string when I hit enter inside it. It looks like this:

string = "Hello"
         "keeps being here"

while in VS Code it looks like this:

string = "Hello
its not here"

Unfortunately, I don't know what this is called, so if someone could share their knowledge, this would be great.

1 Answers

You can use '\' to achieve this:

string = "Hello\
its not here"

This should do the trick for you.

Related