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

Code style - support continuation indent #169

Open
khorsky opened this issue May 13, 2021 · 1 comment
Open

Code style - support continuation indent #169

khorsky opened this issue May 13, 2021 · 1 comment

Comments

@khorsky
Copy link

khorsky commented May 13, 2021

Is your feature request related to a problem? Please describe.
In case I have more tag (or n:tag) attributes, sometimes I keep attributes on separate lines (better overview, better diffs etc.).

"Reformat code" action with latte plugin activated, I'm not able to configure expected result. In PHP/HTML/Twig code style configuration I can use "Continuation indent" property, that is not available here.

Describe the solution you'd like

  • add configuration option "Continuation indent"
  • use option when reformatting code

Expected result

<p>
  <a
    href="#"
    class="foo"
  >
    test
  </a>
</p>

Current result

<p>
  <a
      href="#"
      class="foo"
  >
    test
  </a>
</p>

There is no pleasure to work with latte templates using tabs with 4 spaces (my case) anymore... :-)

@mesour
Copy link
Collaborator

mesour commented May 20, 2021

@khorsky you can use a workaround until this will be implemented.

For now, you have to format these arguments manually. And after this do not use reformat to the whole file, but only for selection (for the code you are editing). This will prevents unwanted formatting.

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

2 participants