Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable line numbers in zen mode for VSCode?

Is there a way to enable line numbers in zen mode for VSCode ?

like image 237
kalpaj agrawalla Avatar asked May 23 '19 12:05

kalpaj agrawalla


People also ask

How do I show line numbers in Zen mode?

HaaLeo's answer above gets the job done but it's far easier to do it through the UI. ctrl + , to bring up the Settings page, type "Zen Mode" in the search bar and disable the "Zen Mode: Hide Line Numbers" option.

How do I turn on line numbers in VS Code?

You can show or hide line numbers in your code. Here's how. On the menu bar, choose Tools > Options. Expand the Text Editor node, and then select either the language you're using or All Languages to turn on line numbers in all supported programming languages.

How do I use Zen mode in VS Code?

Zen Mode lets you focus on your code by hiding all UI except the editor (no Activity Bar, Status Bar, Sidebar and Panel) and going to full screen. Zen mode can be toggled using the View menu, Command Palette or by the shortcut Ctrl+K Z. If you prefer not to transition to full screen, that can be disabled via window.

How do you add numbers in VS Code?

Insert Numbers - Visual Studio MarketplaceSelect multiple locations where you want the variables to be sequentially numbered, using [Option] + [Command] + ↑/↓ , etc. the numbers will be numbered consecutively from 0 like this.


2 Answers

In your settings.json insert the line:

"zenMode.hideLineNumbers": false 
like image 79
HaaLeo Avatar answered Sep 20 '22 13:09

HaaLeo


HaaLeo's answer above gets the job done but it's far easier to do it through the UI.

ctrl + , to bring up the Settings page, type "Zen Mode" in the search bar and disable the "Zen Mode: Hide Line Numbers" option.

like image 31
nickpapoutsis Avatar answered Sep 23 '22 13:09

nickpapoutsis