Closed khaledafify closed 3 years ago
There's nothing like editor.action.formatDocument
in Monaco Editor. Can you please explain what you mean?
i have initialized MonacoEditor Component in my page and i need to format the code
@serdarciplak is this action applicable to perform ?
Hi @khaledafify It's suggested to use the editor.trigger() method in the link you've sent. BlazorMonaco already supports that method. So, you may use it to invoke the editor.action.formatDocument action.
thank you @serdarciplak I'll try it tomorrow.
how can i trigger the action
` 'editor.action.formatDocument'
to format the code ?