Open Rishabh-malhotraa opened 3 years ago
I wanna work on this issue, please assign it to me.
@rounit08, you can tell me your approach on how you plan to do this. I need to research how you even go ahead trying to implement a feature like this.
@Rishabh-malhotraa I want to give a try to this issue. Can I?
@komal1503 this is a difficult issue. Before working on this, mind doing some research on how you would try to implement this.
i Investigated a lot, Codmirror's maintainer says that it doesn't provide any formatting functionality itself, but we could format the code base of using language, like we could use from prettier for JavaScript codes
@Rishabh-malhotraa, @rounit08, @komal1503 what's your opinion?
I wish there could be a button on the toolbar, on which if you click it formats the document just like prettier does on vscode.
This needs further investigation as is it something which is even practical and should be pursued or no, because this can lead to some annoying bugs with cursors during collaboration D: