You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That fix targets a different issue similar in nature, and the fix is that typing a closing bracket will not change the current line's indentation if the bracket is preceded by any non-whitespace characters, covering both issues exemplified in the two gifs in this thread.
Tomorrow's insiders build will contain the change and it would be great if you could try it out and provide additional feedback. We can then proceed to reopen this issue or start a new one, as you prefer.
it makes many assumptions about regularity and syntax in languages. Bad if
your language has different options.
Am 25.01.2017 9:45 nachm. schrieb "Isaac Abraham" <[email protected]
I can confirm that some of the other cases that I see on the mainline build are fixed on the insider build. But I still think you should allow people to turn this off - people might use a formatting style you don't cater for, or simply not want it at all.
I also noticed that vscode sometimes is inserting braces we I press space.
Urgs
Am 27.01.2017 2:13 nachm. schrieb "Siddhartha Gandhi" <
[email protected]>:
I tested this on the latest insider, and it appeared to be fixed.
Although my question would be now, is when you have an open bracket expression that has yet to be closed, and you press enter, why the default behavior is not to indent to the parenthesis location.
I definitely want to be able to disable any automatic indentation completely.
As it is now, if I'm at the end of a line <tab><tab>void foo(); and press enter VScode will automatically add <tab><tab> to the next line which for me is anything but helpful.
Tested in both the latest Insiders build and 1.12.2.
Activity
isaacabraham commentedon Jan 24, 2017
"good option", more like "must have". This is driving me crazy.
forki commentedon Jan 25, 2017
mousetraps commentedon Jan 25, 2017
Oh no! Looks frustrating - sorry about that! Peng Lyu (@rebornix) and alexandrudima to the rescue!
alexdima commentedon Jan 25, 2017
Fixed via b1c8dad
forki commentedon Jan 25, 2017
wait a second. Did you add a fix for the concrete issues or did you allow us to disable it completely? Because I think we really need the second one.
alexdima commentedon Jan 25, 2017
That fix targets a different issue similar in nature, and the fix is that typing a closing bracket will not change the current line's indentation if the bracket is preceded by any non-whitespace characters, covering both issues exemplified in the two gifs in this thread.
Tomorrow's insiders build will contain the change and it would be great if you could try it out and provide additional feedback. We can then proceed to reopen this issue or start a new one, as you prefer.
isaacabraham commentedon Jan 25, 2017
alexandrudima I really think having the ability to turn the auto-format off is important. Not everyone wants it.
forki commentedon Jan 25, 2017
forki commentedon Jan 25, 2017
there are millions of new edge cases to find...
7 remaining items
isaacabraham commentedon Jan 26, 2017
Here's one.

isaacabraham commentedon Jan 26, 2017
Another similar one: -

isaacabraham commentedon Jan 26, 2017
I can confirm that some of the other cases that I see on the mainline build are fixed on the insider build. But I still think you should allow people to turn this off - people might use a formatting style you don't cater for, or simply not want it at all.
gandhis1 commentedon Jan 27, 2017
Let me know if this is unrelated, but I see a similar issue with Python as I reported in https://github.com/DonJayamanne/pythonVSCode/issues/666
Edit: Just realized this was already referenced by OP.
forki commentedon Jan 27, 2017
gandhis1 commentedon Jan 27, 2017
I tested this on the latest insider, and it appeared to be fixed.
Although my question would be now, is when you have an open bracket expression that has yet to be closed, and you press enter, why the default behavior is not to indent to the parenthesis location.
peredin commentedon May 22, 2017
I definitely want to be able to disable any automatic indentation completely.
As it is now, if I'm at the end of a line
<tab><tab>void foo();and press enter VScode will automatically add<tab><tab>to the next line which for me is anything but helpful.Tested in both the latest Insiders build and 1.12.2.
rebornix commentedon Nov 3, 2020
editor.autoIndentsetting is now enriched to allow you disable this feature completely.