pushqrdx / vscode-inline-html

🎨 Adding Syntax Highlighting, Emmet, IntelliSense support for ES6 Template Strings in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=pushqrdx.inline-html
GNU General Public License v3.0
54 stars 15 forks source link

Formatting? #2

Closed yorrd closed 1 year ago

yorrd commented 5 years ago

I'm loving it! Ever thought about formatting? I'm using it in the context of lit-html and have to format the templates by hand at the moment o.o

Have a great day!

pushqrdx commented 5 years ago

@yorrd sorry for the so late reply i didn't receive notification about that :), Yeah formatting was on the list for this one, I'll try my best to implement it asap.

yorrd commented 5 years ago

@pushqrdx awesome! let me know if we can help testing :) <3

mattrossman commented 3 years ago

The lit-html extension offers formatting inside of its HTML strings, I'm wondering if we can use their implementation as a reference. What I want is basically the functionality of lit-html but with a /* html */ prefix instead of html, since I'm not actually using the lit-html library.

Currently I have to write

const html = String.raw

in all my files just so that I can use the html prefix for compatibility with the lit-html extension. I would love to use this extension instead but it lacks formatting support.

pushqrdx commented 1 year ago

closing as we already got editor.action.formatInlineHtml, I am planning to add a formatter that can handle both typescript/javascript and inline html blocks but waiting for vscode to add a nicer way other than overriding the default formatter.