Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm - Autocomplete Quotes - Go to Next Line from within Quotes

I'm new to PyCharm.

I like that it autocompletes single and double quotes, but how do I "get out" from within the quotes and proceed to the next line without having to cursor or mouse over?

Example:

I start typing,

string = 'Hello World'

After I'm done with the letter d, my cursor is stuck there.

So is there a fancy way of hitting ENTER so that I can go to the next line without bringing the trailing quote with me?

I understand that I can just close the ' quote myself, but doesn't that defeat half of the purpose?

Thanks!

like image 597
Berto Avatar asked Dec 03 '25 04:12

Berto


2 Answers

Easy. Once you finish writing the string, press CTRL + SHIFT + ENTER. Viola, you're on the next line.

like image 188
Games Brainiac Avatar answered Dec 06 '25 17:12

Games Brainiac


SHIFT + ENTER works as well, I found.

like image 39
mcgyver5 Avatar answered Dec 06 '25 15:12

mcgyver5



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!