tera-vscode icon indicating copy to clipboard operation
tera-vscode copied to clipboard

The formatter seems not work with `*.html` files

Open bioinformatist opened this issue 1 year ago • 1 comments

I don't know how to format *.html files. It may works with early versions of tera-vscode, but seems not work now.

bioinformatist avatar May 15 '24 02:05 bioinformatist

See #11. You can use the "editor.defaultFormatter": "vscode.html-language-features" instead.

But the VS Code built-in formatter works like rubbish. It ruined some indents in the code.

cc @karamfd @karuna

Here is a diff example:

{%- macro seo(
-	title="",
-	title_addition="",
-	description="",
-	type="website",
-	is_home=false,
-	is_404=false,
-	is_page=false
-	)
+title="",
+title_addition="",
+description="",
+type="website",
+is_home=false,
+is_404=false,
+is_page=false
+)
%}

LitoMore avatar Oct 26 '24 02:10 LitoMore