RiFi2k / format-html-in-php

Basically this vscode extension uses all your standard configurations for html formatting, and your standard configurations for format on save, etc. It more or less works exactly how vscode should already work as it pertains to HTML in PHP files.
The Unlicense
33 stars 6 forks source link

Indenting with spaces instead of tabs #1

Closed zurkoxxx closed 6 years ago

zurkoxxx commented 6 years ago

I have a problem. Is there any way to make the extension use spaces instead of tabs for formatting?

P.S. Really nice to see someone tackle this "formatting html inside php" issue.

RiFi2k commented 6 years ago

So you should just be able to set your html format options in code to use spaces instead of tabs, but I will take a closer look to make sure this is happening later today. If it doesn't work out the box right now I can quickly add this. EDIT: @zurkoxxx Just tried setting the code settings for HTML and you seem to be right. Good catch, I'll have this patched at some point later tonight.

zurkoxxx commented 6 years ago

@RiFi2k nice, thanks!

RiFi2k commented 6 years ago

Just want to let you know I didn't forget about you, @zurkoxxx

I decided to make some major improvements at the same time, so soon it will inherit every configuration possible for HTML formatting from a vscode setting.

Also I should be able to grab any .editorconfig values and add those in automatically.

Also looking at formatting inline JS and CSS in PHP files according to the configurations you have set for those as well in code, but I don't know if that will make this release.

Check the 1.2.0 branch if you want to see the progress, it's real close just need to merge the options together better.