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 install and use as plugin in VSCode? #10

Closed
kristianmandrup opened this issue Jan 30, 2019 · 2 comments
Closed

How to install and use as plugin in VSCode? #10

kristianmandrup opened this issue Jan 30, 2019 · 2 comments

Comments

@kristianmandrup
Copy link

I found this post on prettier plugins on the prettier.io site, but not quite sure how to put it into effect in a C# project.

I also found this post on how to configure prettier

Coming from a NodeJS and JS background, I assumes I'd have to install prettier and the plugin in packages.json of my C# project root as dev dependencies.

Not sure if I should then use the CLI or the API option? Is it possible with direct integration in the IDE/Editor, ie. auto format on save as per the usual settings.json prettier setting?

Would be great if the Readme could be more clear on this. I know the plugins are beta.
Great work!

Cheers :)

@kristianmandrup
Copy link
Author

Ah, it works with Editor integration (on Save) after running the two commands suggested.
Awesome! Would be nice if it could be more clear that all the usual benefits of prettier will be available out of the box on installation of a plugin :)

@warrenseine
Copy link
Owner

While renaming the project, I updated (and simplified) the commands. I will also add a section for editor integration, but will try to keep it simple because I want it to be vendor-agnostic.

Thanks for reporting!

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