atularen / ngx-monaco-editor

Monaco Editor component for Angular 2 and Above
https://www.npmjs.com/package/ngx-monaco-editor
MIT License
428 stars 155 forks source link

How to format or Beautify Javascript code on button click event ? #268

Open Co-Maheshh opened 10 months ago

Co-Maheshh commented 10 months ago

i have added this editor and its working perfect. its worked shortcut keys CLT + K + F for beautify javascript code. but i want to beautify when i clicked on button that time only so how to do that. i have button like this .

<button (click)="beautify()">Beautify

Co-Maheshh commented 10 months ago

@atu1kr @darinw