How formatting code
Hi , Have a Button and want to click it to formatting editor code . How should I do ?
How to format automatically
manaco-editor does not support code-formatting functionality out-of-the-box. It is something you have to implement yourself. I've implemented a Python formatter using Black, but it required a manual implementation. 🤠

hi, depends on the language. For example to edit the json code in react you can use JSON.stringify("JsonObject", null, 4). Ref to Mozilla Developer
Prettier can be loaded and used in your project to do the code formatting, right?