-
Notifications
You must be signed in to change notification settings - Fork 64
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
Implement a default prettier formatter? #188
Comments
Hi @everdimension:
So I thought about packaging Prettier with the plug-in, but err'd on the side of caution not to bloat the installation. Thought process being that such cases where Prettier isn't already installed (somewhere), would be quite seldom, thus not worth the effort.
This has come up a few times, but will take quite a bit of effort to implement. That said, pull requests are ALWAYS welcome. |
I don't think I understand. You have access to the view and its contents (just text), you have prettier. What does it matter if the file is "saved" or not?
I don't think it's fair calling this "bloat". The user experience suffers for sure, but what exactly do you save here?
I have been using On the other hand, everything I need from the plugin doesn't sound complicated:
Again, I don't want to imply you're doing something wrong: I'm not that familiar yet with plugin development for Sublime Text. But if you could explain in a bit more details the motivation for not including these features it would help me understand how to contribute, or it will maybe make me see that it's not worth the trouble. Thank you. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm coming from Atom editor, where the expirience of using a prettier plugin was a bit better.
There are two things I wish to have:
When neither
prettier
nor prettier config is found in the project folder of the file you're trying to format, I wish the plugin used its inner prettier installation and default configuration. I do not want to install prettier globally for thatI wish to be able to format new (unsaved) files with the prettier plugin, given that I have set the syntax for the file as javascript, typescript, html, css or mdx (or any other syntax supported by prettier)
Thanks! If I can help in any way, please say so, I'd be glad to.
The text was updated successfully, but these errors were encountered: