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
PhpStorm use spaces instead of tabs after reformat .latte #46
Comments
Same here. All latte files after reformat lines replace double brackets to spaces. |
@JanTvrdik @matej21 |
Interesting, after upgrading to PhpStorm 2019.3 the issue is gone. Anyone else can confirm that? |
Not for me. Tabs are still converted to spaces (with latest PhpStorm 2019.3). |
@kolinger Ok, it seems like that in my case it works in combination with [*.latte]
indent_style = tab
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true In previous versions of PhpStorm, the EditorConfig plugin was external and I was facing this issue even with the mentioned setup. But as of 2019.3 the EditorConfig plugin was updated and it is now bundled in PhpStorm and it seems it helps. I tried it in multiple projects, I understand this is not a proper solution, but for now, it might help others too. |
Yes, this works for me too. I placed |
|
Fixed in 1.0.2. It can be set in code style settings for Latte in PHPStorm preferences |
Hi, from PHPstorm 2019.2 there is a problem with formatting latte templates after reformat. It's unable set tabs instead space in settings. So even the slightest edit in latte templates will cause complete reformatting.
The problem is just in latte macros - look at the picture.
Is there some solution how to switch formatt settings back to tabs?
The text was updated successfully, but these errors were encountered: