I have a editor setup, and would like to add some space between the gutter and the code. I would like the yellow in the following example to be white space.
A good example would be a screenshot from Visual Studo Code where the numbers are farther away from the code.
marijn
June 13, 2018, 12:19pm
2
You want a style like .CodeMirror-lines { padding-left: 10px }
2 Likes
sarah
February 13, 2020, 7:39pm
3
When I do this, the numbers in the gutter also move to left! Is there a way to avoid that?
1 Like
rino
January 4, 2024, 3:55pm
4
On my environment, I could achieve this by setting negative position for -linenumber:
.CodeMirror-lines {
padding-left: 0.5rem;
}
.CodeMirror-linenumber {
left: -0.5rem !important;
}