How can i custom margin like vscode?
I am sorry to ask question here, but there is no relevant question or answer in stackoverflow.
as you see, when you open user setting in vscode, mouse hovering the setting, there is a pen you can click and do sth.
How can i realize the feature using Monaco editor, Is there any api for this?
I tried to read the code of vscode of this page, but it's to complex for me to realize a small feature.

Thanks for your time!
@yln99517 Thank you.
But in this sample, i can only set the className of margin. Is there any option to set a dom margin?
@cctv1005s I use Like this
var decorations = editor.deltaDecorations([], [
{
range: new monaco.Range(3,1,3,1),
options: {
isWholeLine: true,
className: 'myContentClass',
glyphMarginClassName: 'fas fa-file-alt'
}
}
]);
And with font-awesome , It can show a lot of type of icons.
Or use this way. https://stackoverflow.com/questions/946403/insert-image-after-each-list-item Hope help to you.