Daniel
Daniel

Reputation: 935

PyCharm python file consists of only one line instead of normal editor

I just installed PyCharm on my Mac and it looks like this when I edit or create a new Python file:

Editor_current

This is how the file looks like in TextEdit: Pyfile_current

How can I change it so it looks normal again? (Like this:) Editor_normal

For whatever reason only one line is shown and I can't find an option to increase the number of lines that are displayed anywhere.

Upvotes: 3

Views: 790

Answers (4)

Poe Dator
Poe Dator

Reputation: 4903

I updated to the fresh version 2021.2.1 and the problem went away.

Upvotes: 0

Ryan Lynch
Ryan Lynch

Reputation: 82

I had the same issue. Close every file individually, then close PyCharm.

After opening PyCharm back up, opening the project from Open Recent seemed to resolve the issue for me.

Upvotes: 3

Daniel
Daniel

Reputation: 935

Finally fixed the error myself. The latest version of PyCharm is buggy. Installing an older version of it fixed the problem for me

Upvotes: 0

SoulNinja-dev
SoulNinja-dev

Reputation: 10

Have you tried writing more lines of code?

in pycharm unused imports are always in grey color, until the import is used.

So just continue writing your code it will become normal.

Upvotes: -2

Related Questions