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

Run built-in prettier reformatter on save #159

Closed
dobesv opened this issue May 31, 2018 · 2 comments
Closed

Run built-in prettier reformatter on save #159

dobesv opened this issue May 31, 2018 · 2 comments

Comments

@dobesv
Copy link

dobesv commented May 31, 2018

WebStorm has added built-in support for reformatting code using prettier. It would be pretty cool if this plugin could invoke that other plugin on save.

@dubreuia
Copy link
Owner

dubreuia commented Jun 1, 2018

Hey @dobesv, I know it works for dart, read this paragraph of the docs.

The code style applied by the save actions plugin is the one configured your settings at "File > Settings > Editor > Code Style". For some languages, custom formatter may also be triggered by the save actions plugin. For example for Dart developers, enable "Use the dartfmt tool when formatting the whole file" option in "File > Settings > Editor > Code Style > Dart > Dartfmt".

If you don't have such options for "prettier", we're out of luck. You can submit a PR to add that feature. See issue #118 where this was already discussed.

@dubreuia
Copy link
Owner

dubreuia commented Jun 1, 2018

Duplicates #118

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

2 participants