Reputation: 123
How can I add padding between the first line of code and top border of Monaco editor?
I have this:
But I need something like this:
Upvotes: 11
Views: 3646
Reputation: 4005
A little late to the party, but this initial option is available (monaco v0.41.0):
const options = {
padding: {
top: 10
}
// more options...
}
monaco.editor.create(anElement, options);
Upvotes: 6
Reputation: 3839
Try
.monaco-editor {
padding-top: 15px;
}
It worked for me
Upvotes: 2