Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to Format code like prettier does on VSCODE #9

Open
Rishabh-malhotraa opened this issue Mar 22, 2021 · 6 comments
Open

Add option to Format code like prettier does on VSCODE #9

Rishabh-malhotraa opened this issue Mar 22, 2021 · 6 comments

Comments

@Rishabh-malhotraa
Copy link
Owner

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:

@Rishabh-malhotraa Rishabh-malhotraa changed the title Add Format code like prettier Add option to Format code like prettier does on VSCODE Mar 22, 2021
@MarufSharifi
Copy link
Collaborator

I wanna work on this issue, please assign it to me.

@Rishabh-malhotraa
Copy link
Owner Author

@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.

@komal1503
Copy link

@Rishabh-malhotraa I want to give a try to this issue. Can I?

@Rishabh-malhotraa
Copy link
Owner Author

@komal1503 this is a difficult issue. Before working on this, mind doing some research on how you would try to implement this.

@MarufSharifi
Copy link
Collaborator

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

@MarufSharifi
Copy link
Collaborator

@Rishabh-malhotraa, @rounit08, @komal1503 what's your opinion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants