-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Option to use tabs #232
Comments
Hi @muuvmuuv,
If you have the following code
Do you expect:
? And what do you mean by
|
If I say my setting is one tab indention and one tab equals two spaces it would just be
In the GitHub issue template it says "...rule(s) missing", so I expected that means I need to provide an example of a missing rule? |
I think it will be more an option to add to
I kinda disagree here. Code ca be indented with
for instance
I agree on the fact I need a spaceRatio between tabs and space (you use one tab for two spaces, I generally see one tab for 4 spaces). But I can only replace x spaces by one tab, without removing tabs or extra spaces. So the rule (with a 4 space ratio) will replace
This is the best I can do IMHO. |
Oh, sorry I misunderstood you with the "5 spaces", yes you are right, some ratio is needed in order to replace them correctly. If tabs are used, I would expect overflowing spaces to be removed if they aren't in the ratio range, otherwise the option wouldn't make sense for a fixed indention. |
I let this to another Rule in creation which would be |
Maybe something like "style" and "size" makes more sense and its set to spaces by default? Biome does something similar: https://biomejs.dev/reference/configuration/#formatterindentstyle |
+1 |
WIP #236 ; any feedback is welcome |
Amazing! Will test it out! Not trying to hijack the subject, but by any chance can you give me a pointer about how to use your tool inside vscode? php-cs-fixer does a terrible job as a twig* formatter. |
There is no native integration of twig-cs-fixer inside phpstorm/vscode so far. |
Rule(s) related to or rule(s) missing
Expected behavior
Should convert spaces to tabs by indention rule.
Actual behavior
No rule to use tabs instead of spaces.
The text was updated successfully, but these errors were encountered: