Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to completely hide the gutter of monaco editor

Is it possible to completly hide the monaco-editor gutter. I tried the following options:

  lineNumbers: 'off',
  glyphMargin: false,
  folding: false

This reduces the gutter size but it's still about 10 pixel wide and it grows back when hovering it. Is there a way to suppress it completly?

like image 456
Sebastien Avatar asked Nov 23 '18 14:11

Sebastien


Video Answer


1 Answers

There are two hidden options that allows to hide it completely

See https://github.com/Microsoft/vscode/issues/30795#issuecomment-410998882

{
  lineNumbers: 'off',
  glyphMargin: false,
  folding: false,
  // Undocumented see https://github.com/Microsoft/vscode/issues/30795#issuecomment-410998882
  lineDecorationsWidth: 0,
  lineNumbersMinChars: 0
}
like image 52
Sebastien Avatar answered Oct 17 '22 16:10

Sebastien