Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add padding-top for Monaco editor?

How can I add padding between the first line of code and top border of Monaco editor?

I have this:

enter image description here

But I need something like this:

enter image description here

like image 563
Вадим Яровой Avatar asked Nov 18 '22 08:11

Вадим Яровой


1 Answers

Try

.monaco-editor {
 padding-top: 15px;
}

It worked for me

like image 155
Stefano Fratini Avatar answered Jan 11 '23 23:01

Stefano Fratini