-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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 indent on opening braces if various statements #30691
Comments
@vscodebot[bot] Not just php, its all languages ;-) (I know you're a bot, but one of us humans will read this!) |
That's weird - I'm sure it reproduced without extennsions, but I just tried it without "Better Align 1.1.6" and the problem goes away! Sorry to have bothered you. |
Well this is bizarre - after restarting vscode the problem has come back (even though "Better Align" is still disabled)! |
So I've tried the following settings with no luck either:
After adding each setting I would close VSCode and then re-open it using |
I've also been getting this since the 1.14 release, and have been able to reproduce using Running format document with Shift+Alt+F formats correctly so it appears to be local to auto formatting while typing, not a global formatting issue. |
FYI: I can confirm that this has happened on another PC (with different extensions) after updating to 1.14.1 |
I am also getting this in Javascript with those settings:
If I start the brace on the same line, it seems to behave properly. |
Not my OK, will continue comments on #30933 |
@rebornix Closing this and not fixing the issue isn't very helpful IMHO! |
@simonl65 sorry for using the wrong words (a typical problem of non-native speaker). We already fixed it in master and will have it with next Stable. The expected behavior will be
press enter will lead to
Does this sound good to you? |
@rebornix Great to hear it's fixed, but no that's not the issue I am currently seeing.
press enter:
type
Used to work pre-1.14 |
@rebornix No worries. However, I agree with @davidstlyoui - typing |
Since the update to 1.14.0 I get an annoying indent on the first line after (say) an "if" or "for" statement which didn't used to happen. I like my curly-braces to appear on the first line after these statments and in-line with them.
Steps to Reproduce:
e.g.
if( cond )
{}
Expected:
Hitting enter should leave the cursor in-line with the "i" of "if", e.g.
if( cond )
{}
I have tried setting the following, but with no change:
Reproduces without extensions: Yes
edit: Fixed spacing in the examples.
The text was updated successfully, but these errors were encountered: