-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
annoying indentation bug while writing html in a php file #32871
Comments
This is such an awful bug that has me rethinking my use of VS Code for PHP dev. When should we expect this to be fixed? |
I made this because I was annoyed at nested HTML in PHP, this should format based on whatever native settings you have for html.format and editor format on save/type Format HTML in PHP |
We closed this issue because we are unable to reproduce the problem with the steps you describe. Chances are we've already fixed your problem in a recent version of VS Code. If not, please ask us to reopen the issue and provide us with more detail. Our issue reporting guidelines might help you with that. Happy Coding! |
Apologies, some more details -- This appears to be an interaction between the HTML language server and PHP. Opening a PHP file in VS Code and then trying to reproduce the issue won't yield results, but if you open an HTML file (or change the file to HTML and back again), then this issue occurs. |
This is due to the limited architecture (regex based indentation rules and only support limited code styles), we may want to consider using formatters if they exist for indenation adjustment (if interested, we can discuss in #19847). For this particular issue, if the indentation rules are leading to more trouble than having no auto indent, you can set |
I have auto close tags toggled off in my preference configurations.
whenever i try to manually close an html tag, the closing tag ignore indentation and jumps to the left, which forces me to manually indent whenever I am trying to close a tag.
This is VERY ANNOYING and detrimental to my word flow and concentration. It started to happen after the next to last update.
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: