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

How to use in VSCode (prettier-vscode)? #1

Closed
otbe opened this issue Jun 25, 2018 · 2 comments
Closed

How to use in VSCode (prettier-vscode)? #1

otbe opened this issue Jun 25, 2018 · 2 comments

Comments

@otbe
Copy link

otbe commented Jun 25, 2018

Hi,

I tried using this patched prettier version in VSCode, but I wonder if its possible at all?
prettier-vscode resolves prettier via requiring it, so in the end it will get index.js from prettier itself.

Do you know any way to use your patched version in VSCode?

Thanks!

@sgtpep
Copy link
Owner

sgtpep commented Jun 25, 2018

Hi!

I'm afraid it's not possible to use it within prettier-vscode without modifying/forking it. All require('prettier') needs to be replaced with require('prettier-plugin-html-template-literals/prettier').

I am not a VSCode user but I hope someone will either publish a modified version of prettier-vscode, or collaborate with its author to extend it somehow.

@otbe
Copy link
Author

otbe commented Jun 25, 2018

There is an open issue to configure the binary path, see prettier/prettier-vscode#232. I think as of now a fork would be the best solution.
Thanks for you answer. I will close the issue for now.

@otbe otbe closed this as completed Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants