Is there any way to reduce the width of the string of the vscode line number?

Vertical column containing code line number: VSC is too wide. Is there any way to narrow this down?

vsc view of line numbers

+33
source share
2 answers

You cannot resize this column.

There are actually three columns:

enter image description here

  • To the left of the laundry is a column with a name glyphMargin, a place for setting breakpoints for debugging (red dot). (When you edit the settings, a pen is displayed in the column when you point to a line, as shown in the screenshots below)
  • line number itself
  • Right of this you can fold / expand your code.

If all three are active, it looks like this (settings) or as above (code)

enter image description here

To save space, you can

  • turn off the display of line numbers:

    "editor.lineNumbers": "off"
    

    enter image description here

  • :

    "editor.folding": false
    

    enter image description here

  • , glyphMargin:

    "editor.glyphMargin": false
    

    enter image description here

, , , , , , . , ctrl , //.

+67

, Visual Studio , , , , . "editor.lineNumbersMinChars", - " " , .

, (, , ):

"editor.lineNumbersMinChars": 1,
"editor.glyphMargin": false,
"editor.folding": false,

: https://github.com/Microsoft/vscode/issues/48791

+1

Source: https://habr.com/ru/post/1680736/


All Articles