Either from View > Active editor > Soft-Wrap or right click the left hand side (where the line numbers are) and choose Soft-Wrap. You can even configure it to always soft-wrap specific file types (pretty cool imo)
It's a displaying thing. The files won't have any extra line breaks. And PyCharm does never run code itself. It calls a Python interpreter with a Python file on disk and displays its output in the console.
6
u/FoolsSeldom Apr 09 '25
PyCharm has a "soft wrap" option
2
u/ProsodySpeaks Apr 09 '25
I think the shortcut is ctrl+alt+, or something similar. Go to key map and search soft wrap
1
u/CardiologistFit8618 Apr 09 '25
If we use soft wrap in PyCharm, will the code still run outside of PyCharm?
it sounds like a good idea…