-
Notifications
You must be signed in to change notification settings - Fork 15
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 prettier - code formatter #51
Comments
There is already an unopinionated code formatter called indent.js that can be accessed in the plus icon menu of the quick keyboard, but if you prefer to use prettier, I can add this as an alternative opinionated formatter that can be changed in the settings. |
I already discovered this tool but it is a little but it is not working very good:
For no reason it inserts spaces to the code. |
Ok, I can switch it. I am the developer for indent.js and there has been no bug reports on the repo. Just wondering if prettier can be configured to not put each element of an array on a new line? I find it super annoying when code prettifiers add a whole bunch of new lines to my code, but maybe that’s just me... |
Maby you just add an option to the settings to choice which prettifier to use. |
prettest.zip |
I looked into prettier and I’m shocked that the standalone bundle is over 30000 lines of code. Even when gzipped it still is a huge file, not to mention parsing through so much JavaScript will further slow down the editor load time. I’m going to switch to jsbeautifier, alternately I can refractor the formatter into a webworker, which hopefully shouldn’t bog down the editor start up time. |
Ok... I'm really looking forward to it! |
Prettier
Prettier is available for a lot of popular code editors:
VS code, VS, Atom, Webstorm and a lot more.
I don't think it will be hard to implement!🤔
👍😁
The text was updated successfully, but these errors were encountered: