Is there a way to make vscode line number field smaller width?

前端 未结 4 1661
北海茫月
北海茫月 2020-12-13 00:09

The vertical column that contains the code line number is VSC is too wide. Is there a way to narrow it down?

4条回答
  •  [愿得一人]
    2020-12-13 00:28

    [EDIT MAY 2020] The name of the undocumented setting has apparently been changed to editor.lineDecorationsWidth, so updating answer below.

    Actually, there is an undocumented setting in Visual Studio Code that will do exactly what you want. It's called "editor.lineDecorationsWidth", and although you will get some kind of warning Unknown setting parameters or underline squiggly, it will work.

    This is the config for minimum possible space taken by line numbers (and keeping said line numbers, of course):

    "editor.lineDecorationsWidth": 0,
    "editor.glyphMargin": false,
    "editor.folding": false,
    

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

提交回复
热议问题