mrmlnc / vscode-pugbeautify

:electric_plug: Simple Pug/Jade beautify plugin for VS Code.
https://goo.gl/VLj9SL
MIT License
5 stars 1 forks source link

Doesn't work for me #3

Closed thomas159 closed 8 years ago

thomas159 commented 8 years ago

When I run beautify pug/jade on a selected block of html code it doesn't convert

mrmlnc commented 8 years ago

Hello, @thomas159,

Now, this plugin does not support formatting of selected block of code. Because if you select any part of code and run this plugin, it will work not correctly. For example:

before

\t\t\t.class
\t\t\t\t\t.class

after

\t.class
\t\t.class

expected

\t\t\t.class
\t\t\t\t.class
thomas159 commented 8 years ago

I'm not sure how to use this plugin then as opening an html file and running Beautify pug/jade doesn't work for me, selected or no selected html

mrmlnc commented 8 years ago

👀 Why you talking about HTML when this plugin works with a Jade/Pug? You can provide code or GIF?

thomas159 commented 8 years ago

Sorry, think I got the wrong idea of what this did, thought it converted html to pug, seems nto, delete my issue and I've given you a good review ;)

On 17 November 2016 at 16:04, Denis Malinochkin notifications@github.com wrote:

👀 Why you talking about HTML when this plugin works with a Jade/Pug? You can provide code or GIF?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mrmlnc/vscode-pugbeautify/issues/3#issuecomment-261270341, or mute the thread https://github.com/notifications/unsubscribe-auth/AI19agf5Qr_K8-s77PJ2cHfniXAn3wYhks5q_G0RgaJpZM4K1X6M .

mrmlnc commented 8 years ago

For convert HTML to Jade/Pug you can use https://marketplace.visualstudio.com/items?itemName=wmaurer.html2jade or http://html2jade.org/