Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 3: how to show line numbers and bookmarks in distraction free mode?

Tags:

It's quite easy to show/hide tabs or minimap in distruction free mode using View menu (Alt+V) or Ctr+Shift+P. Is it possible to do the same for line numbers and bookmark arrows?

Or maybe center whole text in a fullscreen mode? It would have the same effect.

like image 471
Aleksander Alekseev Avatar asked Dec 21 '15 08:12

Aleksander Alekseev


People also ask

How do I get line numbers in sublime?

In Sublime Text, you can quickly jump to any line in the code. Hit Ctrl–G (Mac and Windows). Type in a line number and hit Return/Enter to go to that line.

How do I mark a line in Sublime Text?

Bookmarks are a way to mark the text and move on. To create a bookmark, I select the text and choose "Toggle bookmark" from the "Goto" menu. A caret is added along the left margin of the line.


Video Answer


1 Answers

It is not default behavior (keybinding). You can get line numbers, centering etc. only by modifying user config (Preferences -> Settings-More -> Distraction Free-User). Add for example this:

{     "gutter": true,     "line_numbers": true } 

to get line numbers.

P.S. I was also looking for some shortcut for this. No luck. This is the only way I found for now.

like image 105
Shulyk Volodymyr Avatar answered Oct 09 '22 05:10

Shulyk Volodymyr