Skip to content
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

{# Breaks html auto format #1847

Closed
TimCluyts opened this issue Oct 13, 2020 · 2 comments
Closed

{# Breaks html auto format #1847

TimCluyts opened this issue Oct 13, 2020 · 2 comments

Comments

@TimCluyts
Copy link

Issue Type: Bug

Typing {# causes the html auto format to stop

Steps to Reproduce:

Type some html containing {#
Auto Format
Example:

      <html>
        <div>
     <p>   Sample Text    </p>
  </div>    <div>
      <p>   Typing {# breaks vscode </p>

       <p>     
             This part is not formatted
             </p>
         </div>
</html>

Expected:

<html>
<div>
    <p> Sample Text </p>
</div>
<div>
    <p> Typing {# breaks vscode </p>

    <p>
        This part is not formatted
    </p>
</div>
</html>

Actual:

<html>
<div>
    <p> Sample Text </p>
</div>
<div>
    <p> Typing {# breaks vscode </p>

       <p>     
             This part is not formatted
             </p>
         </div>
</html>

This is relevant for any Thymeleaf templates, which make extensive use of '{#' syntax, as seen here

@DubiousDoggo
Copy link

relevant downstream issue for vscode: microsoft/vscode#84606

@bitwiseman
Copy link
Member

bitwiseman commented Nov 6, 2020

Disable templating.
See #1647

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants