10

I would love to have some space between the line numbers and the first intendation/code in the VS Code editor window:

enter image description here

I just want to indent the code in the editor without actually adding whitespace in the code.

I tried "editor.glyphMargin", but this will only increase the space on the left of the line numbers, not between the line numbers and the code.

I'm also aware of the "Centered Layout" view, but this also decreases the width of e. g. the tabs for the file selection.

Is there a setting I'm missing or do I need a plugin/custom CSS?

Bennett Dams
  • 6,463
  • 5
  • 25
  • 45
  • 1
    Here is the ticket about making editor.lineDecorationsWidth as official setting - https://github.com/microsoft/vscode/issues/93887 (we have to collect 20 upvotes) – kanlukasz Apr 02 '20 at 10:14
  • Here is the ticket about editor.contentLeftPadding as official setting. This setting not only resolve visual but also usability issue. https://github.com/microsoft/vscode/issues/135114 (20 or more upvotes needed) – Shuji Oct 14 '21 at 19:15

1 Answers1

13

You can try this --

"editor.lineDecorationsWidth": 25,

This increases the space on the right side of the numbers. I haven't seen anything that increases the padding on the other side of the gutter nearest your code.

Opinion -- Ideally, there would be a editor.padding.left like there is a editor.padding.top, but I haven't seen this yet.

Full Stack Alien
  • 11,244
  • 1
  • 24
  • 37
  • 1
    I would also love to have paddings for all sides, but `lineDecorationsWidth` has to do it for now. Thanks. – Bennett Dams Mar 19 '20 at 15:04
  • 2
    Here is the ticket about making editor.lineDecorationsWidth as official setting - https://github.com/microsoft/vscode/issues/93887 (we have to collect 20 upvotes) – kanlukasz Apr 02 '20 at 10:14
  • 2
    This doesn't work in 2021, but good news is the issue @kanlukasz gave in the above comment is now passed 60 upvotes and already in their backlog. – aderchox Feb 24 '21 at 19:11
  • 1
    Here is the ticket about editor.contentLeftPadding as official setting. This setting not only resolve visual but also usability issue. https://github.com/microsoft/vscode/issues/135114 (20 or more upvotes needed) – Shuji Oct 14 '21 at 19:15