Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make Distraction Free mode show line numbers in Pycharm/Intellij

Like the title suggests, when I use Distraction Free mode in PyCharm or Intellij I cannot see the line numbers, even though I have ticked the "line numbers" box in the settings. Is there a way to make the line numbers appear on Distraction Free mode?

I'm using Linux (Ubuntu) if that helps (I saw a Mac picture where lines were being showed in Distraction Free mode) and my PyCharm version is 2016.2.3.

like image 769
Aventinus Avatar asked Oct 07 '16 14:10

Aventinus


People also ask

How do you get out of distraction in Pycharm free mode?

Go to View | Appearance and select Enter <viewing mode> or Exit <viewing mode>.

How do I get out of Zen mode in Pycharm?

Alternatively you can use Find Actions ⌘⇧A (macOS), or Ctrl+Shift+A (Windows/Linux) and type in zen mode to enter or exit Zen Mode.


2 Answers

Showing the line numbers is independently configurable in distraction-free mode and regular mode.

While in distraction-free mode right-click somewhere close to the left-side of the editor window to see a short menu which contains the Show Line Numbers option:

enter image description here

like image 167
Dan Cornilescu Avatar answered Oct 26 '22 22:10

Dan Cornilescu


The accepted answer didn't work for me.

You can always use the shortcut: ctrl + shift + A and type in: "line" and the "show line numbers" option will appear in the list. Navigate to it and press enter to turn it on.

like image 21
Melron Avatar answered Oct 26 '22 23:10

Melron