-
Notifications
You must be signed in to change notification settings - Fork 238
Auto-Indent is misaligning JavaScript Switch statements #49
Comments
Hear, hear. |
I also noticed two different behaviours:
But also the for block causes a missindentation:
|
👍 on @Gp2mv3's comment. I came here to report the same indentation issue with JavaScript. |
This is killing me. No response from anyone involved in the project yet? |
In the meantime, I've had much better luck with Atom Beautify. |
I think work has been done on this issue because now the indentation is much slower than before... My CPU hit 100% for 5/10 seconds each time I auto-indent, even with smal files (around 300 lines). |
any solution for this indentation problem? |
For a while i thought it was my fault, amazed this is still a bug since August. |
Incredible! Tommaso Rossi Contacts: Website: Short CV:
Rispetta l’ambiente. Hai davvero bisogno di stampare questa mail? Informativa Privacy - Ai sensi del D. Lgs n. 196/2003 (Codice Privacy) si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie. Privacy Information - This message, for the D. Lgs n. 196/2003 (Privacy Code), may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.
|
Sorry this was open for so long, everyone. See the commit message above for an explanation of the new behavior. |
+1 |
The switch statement in JavaScript files is not being indented correctly.
Each case statement is aligning under the break statement directly above it, rather than aligning with the preceding case statement.
A screenshot of this is:

The text was updated successfully, but these errors were encountered: