Is there a way to completely hide overview ruler in monaco-editor? It is still visible with the following:
overviewRulerLanes: 0,
hideCursorInOverviewRuler: true,
scrollbar: {
vertical: 'hidden'
},
overviewRulerBorder: false,
If you want to hide the scroll bar, you can do this
const monacoInstance=monaco.editor.create(document.getElementById("editor"),{
value:`console.log("hello,world");console.log("hello,world");console.log("hello,world");console.log("hello,world");console.log("hello,world");console.log("hello,world");console.log("hello,world");console.log("hello,world");console.log("hello,world");console.log("hello,world");console.log("hello,world");console.log("hello,world");console.log("hello,world");console.log("hello,world");\nconsole.log("hello,world");\nconsole.log("hello,world");\nconsole.log("hello,world");\nconsole.log("hello,world");\nconsole.log("hello,world");\nconsole.log("hello,world");\nconsole.log("hello,world");\nconsole.log("hello,world");\nconsole.log("hello,world");\nconsole.log("hello,world");\nconsole.log("hello,world");\nconsole.log("hello,world");\nconsole.log("hello,world");\nconsole.log("hello,world");`,
language:"javascript",
// theme:"vs-dark",
readOnly:true,
minimap:{enabled:false},
overviewRulerLanes: 0,
scrollbar: {
vertical:"hidden",
horizontal: "hidden",
handleMouseWheel:false,
},
wordWrap: 'on',
})
Did you mean this?
if so:
minimap: {enabled: false}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With