intellij-latte
intellij-latte copied to clipboard
Code style - support continuation indent
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... :-)
@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.