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
Add config to use old brackets/quotes overtyping #78833
Comments
(Experimental duplicate detection) |
@usernamehw I've changed the editor to overtype only quotes and parens auto-inserted by the editor. Would you like to have the old behaviour of overtyping even characters that were not auto-inserted or have you maybe run into a special case in HTML/css/etc.? |
No special cases. Old behavior. |
Obviously a lot of people requested the new behavior but I would agree with @usernamehw in that the new behavior is quite jarring and I'm a little surprised that the default behavior changed instead of a setting being added to support the new behavior for those that wanted to switch. Having the editor sometimes swallow closing tags but other times not is kinda frustrating although I can see the reasoning behind it. |
I miss the old behavior. I'm constantly deleting extra characters now =\ I'll be rolling back my version until this feature is added back. Thanks for all the hard work, folks! |
The problem is that not all auto-inserted brackets are considered auto-inserted in the new implementation. If I write (PHP) This means I have to keep track of how the brackets was auto-inserted in order to know when typing a closing bracket will overwrite the auto-inserted one, or just insert a new character. Edit: This could possibly be considered a bug, and not part of this feature request. |
@larsnystrom this is #78975 |
This is making this editor nearly unusable for me. The old behavior is consistent with previous editors I was using (atom, sublime text) before coming to VS Code. Pretty frustrating/jarring to have BC changes like this come though. |
The new behavior should've been opt-in. The way it worked before seemed more intuitive and I think most people had gotten used to it from using VSC or other editors. |
Agree with everyone in this issue. Frankly I'm surprised such a small collection of people were able to change the default behavior of such a standard function of the IDE. Their opinion is valid, but it's a matter of preference, not something that should have changed the default behavior for everyone else. At the very least we need an option to restore the old behavior. In the last couple weeks I have had so much keyboard frustration that I'm on the verge of writing an extension just to restore the old behavior. |
How long will we have to wait for this option? Doesn't look like there's even a PR for it. Looks like it'll be at least another month to get a new version with the fix. I really don't even understand what this change was trying to do or what the justification for it was. Previously, if you typed a closing parenthesis before an existing one and it got swallowed, the caret would now be positioned past that existing one and typing a new closing parenthesis will work and not get swallowed. Such a minor inconvenience that like 3 people in the world cared about and now it's an inconvenience for literally everyone else. Sort of like this issue: microsoft/TypeScript#29238 I think they should make it a rule where if you are a contributor and you are introducing a feature change that alters the fundamental editing experience, code an option to disable it. You can even make it opt-out, but have the option mentioned clearly in the release notes. |
Starting with tomorrow's Insiders build, you can use |
@alexandrudima You must feel like you are stuck between a rock and a hard place with this config option! FWIW I am a fan of the over-typing and was very confused this past week because it seemed like it worked sometimes but not all of the time, because occasionally I'll write half a conditional, fix some other line, and return to the conditional only to find my bracket overtyping no longer worked 😕 I suppose I simply got used to the overtyping, and because it was consistent, this was ok in my books. I'd still recommend I'll just leave this here: https://xkcd.com/1172/ |
I agree it should default to always. Several people at my work complained about this issue, but were too busy to investigate the cause and fix. I don't believe the new option was even mentioned in the latest release notes. |
#37315
It's a breaking change. And very noticeable at that.
The text was updated successfully, but these errors were encountered: