2

enter image description here

I used to have line numbers (so I should have the addons if needed) but they somehow disappear today (plz see the screenshot) when I was trying to code. I wonder how I can bring them back?

I tried googling the solution - all suggests I install addons but I do have them - possibly I randomly touched the 'short cut' which makes the line numbers not being displayed.

Many thanks!

Tao
  • 31
  • 1
  • 2
  • 6

1 Answers1

8

On vscode, press Ctrl-Shift-P, and type user settings. Click on Preferences: Open User settings. in the settings search bar, type in line numbers. Then, on the Editor: Line Numbers: Controls the display of line numbers., switch that to on if it isn't already.

Also, make sure the checkbox "Zen Mode" right below it is unchecked.

enter image description here

Community
  • 1
  • 1
User One
  • 287
  • 2
  • 9