-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
pug formatter #527
Comments
I also really want the same "attribute on separate line formatting" in HTML to happen with Pug in Vue files. <button type="button"
(click)="modalForm.hide()"
class="close"
data-dismiss="modal"
aria-hidden="true">×
</button> Can we have somethings similar with Pug? |
Any updates on this? |
Could you please let us know whether you have any plans on supporting |
Is supporting pug still on the roadmap? |
Also interested in pug support |
This extension helps, too bad whatever changes were made haven't been contributed back to the original source but hey ho. https://marketplace.visualstudio.com/items?itemName=dtx92.vscode-pugvuebeautify |
I dont' mind just adding https://github.com/vingorius/pug-beautify, if that's what you all want. Can you all give https://marketplace.visualstudio.com/itemdetails?itemName=dtx92.vscode-pugvuebeautify a try to see if it's working fine or buggy for you? |
@octref It seems to work when executing it manually. If I have wrong indentation on both pug and stylus code for example it will format only the template region as it should. So the only thing left for integration would be allowing it on Also I'd like to know if its possible to execute it as the default html formatter with the current Vetur version as a workaround. Thanks! |
Is this still on the roadmap? |
https://github.com/prettier/plugin-pug seems actively maintained. I'll try to integrate that. |
...any success? |
hello? |
Would be awesome to use Pug with a formatter in Vue |
@octref Did you run into a blocker with the |
Add prettier-pug and fix region parser. Fix #527
So.. how do I get vetur to format pug? |
@geoidesic try using prettier maybe - it's working for me using pug in vue sfc's |
Looks like I needed to install |
We want to include a pug formatter in Vetur.
Options:
The text was updated successfully, but these errors were encountered: