Skip to content
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

Insert key doesn't switch to overtype/overwrite mode #1012

Open
miroshko opened this issue Dec 4, 2015 · 206 comments
Open

Insert key doesn't switch to overtype/overwrite mode #1012

miroshko opened this issue Dec 4, 2015 · 206 comments
Labels
editor-input Editor text input feature-request Request for new features or functionality
Milestone

Comments

@miroshko
Copy link

miroshko commented Dec 4, 2015

Insert key should switch between insert and overtype modes but it does not.

Version 0.10.3
Commit 783ecf8
Date 2015-11-26T14:10:14.207Z
Shell 0.34.1
Renderer 45.0.2454.85
Node 4.1.1
Ubuntu 14.04

@alexdima alexdima self-assigned this Dec 4, 2015
@alexdima alexdima added the feature-request Request for new features or functionality label Dec 4, 2015
@egamma egamma modified the milestone: Backlog Dec 10, 2015
@stephenmartindale
Copy link

Please fix this! Incidentally, overtype-mode is an open issue in Atom, too: atom/atom#3023

Reproduced in:

VSCode Version: 0.10.11
OS Version: Microsoft Windows 10

@pom421
Copy link

pom421 commented May 9, 2016

I aggre! For some very special use cases, passing in overtype mode can be very useful (for example to create a padded table in ascii mode).
And in OS X there is no physical key to toggle insert/overtype so this future feature will be necessary to be accessed by a command or in the status bar (like Word).

@alexdima alexdima added the editor-core Editor basic functionality label Aug 30, 2016
@alexdima alexdima removed their assignment Aug 30, 2016
@alexdima alexdima changed the title Insert key doesn't switch to overtype mode Insert key doesn't switch to overtype/overwrite mode Aug 31, 2016
@terenceng2010
Copy link

For example, It would be useful when editing a markdown table.

@remcoros
Copy link

remcoros commented Dec 5, 2016

I am really missing this while working with markdown tables inside vscode. Also for (now and then) editing fixed width ascii files. Would this be possible with a plugin?

@AdamMaras
Copy link

As it turns out, this can be done with an extension. So I did it! I put it together pretty quickly, so it could probably use some shakedown time before a 1.0 release.

@octogonz
Copy link

octogonz commented Feb 3, 2017

+1 I was shocked to discover that Windows Notepad and MS Word don't support this either. I had assumed that this feature was standard across every text editor.

@AdamMaras have you considered making a PR against VS Code?

@AdamMaras
Copy link

@pgonzal I have not, I haven't taken the time to get familiar with the contribution guidelines. Also, since the extension's been installed by a handful of people and I'm getting some feedback, I think I'd like to iterate on it a bit more before proposing adding its behavior directly to Code.

@marekr
Copy link

marekr commented Jun 13, 2017

Bump, its so strange its not built into VSCode.

@entozoon
Copy link

+1 can't live without this feature.. editing docblocks, etc.

@entozoon
Copy link

Thankfully there is a plugin to tide us over in the meantime:
https://marketplace.visualstudio.com/items?itemName=adammaras.overtype

@antcodd
Copy link

antcodd commented Aug 15, 2017

I think this would be a good candidate for an iteration 'Extension Contribution'/integration directed towards improving VsCodeVim integration, while also being useful for others who do not use the extension.

The current R replace mode in VsCodeVim is rather slow. The extension mentioned above is also quite slow.

As mentioned replace/overtype mode is very useful when editing already aligned tables and definitions, especially in block selection mode. Without this I find myself fighting with alignment plugins fixing alignment multiple times when editing a table row.

I currently use a combination of
https://marketplace.visualstudio.com/items?itemName=siegebell.incremental-search (Ctrl+D for multiple cursors on steroids)
https://marketplace.visualstudio.com/items?itemName=steve8708.Align

'Virtual edit' past the end of the line would also be nice but is more niche.

@jez9999
Copy link

jez9999 commented Nov 5, 2017

It is perplexing that this is not in VS Code. Would the VS Code team tell us why? Is it a design choice??

@alexdima alexdima added editor-input Editor text input and removed editor editor-core Editor basic functionality labels Nov 24, 2017
@ryan-jonesford
Copy link

Any updates on this? I would also really like this feature.

@entozoon
Copy link

@fhurta
Copy link

fhurta commented Mar 16, 2018

I was surprised this standard editor feature is missing in VS Code.
What's the problem? The issue was filed in 2015. There's even extension created by the community. Is it that hard to implement it? I'm missing here response from VSCode team

@oasis9
Copy link

oasis9 commented Jul 28, 2023

Came here looking for this feature. Heaaaaps of discussion since 2015, yet no progress?

@gmccullo
Copy link

Somebody please do this and submit a PR. It's ridiculous that this was not in the very first release. It's a bleeding text editor.

@cssjr
Copy link

cssjr commented Sep 28, 2023

You'd think it would be an easy fix, no?

@avm19
Copy link

avm19 commented Sep 28, 2023

You'd think it would be an easy fix, no?

Then go and do it, please! Don't you guys understand that you are pestering people who agree with you? I am subscribed to this issue in order to see updates and not someone else's righteous indignation...

@oasis9
Copy link

oasis9 commented Sep 28, 2023 via email

@GuiRitter
Copy link

Even Windows brought back Never Combine Buttons, just saying...

@m6502
Copy link

m6502 commented Sep 28, 2023

You'd think it would be an easy fix, no?

Then go and do it, please! Don't you guys understand that you are pestering people who agree with you? I am subscribed to this issue in order to see updates and not someone else's righteous indignation...

Asking if this would be easy is not "righteous indignation", but one of the reasons for issue comments to exist in the first place. A user of the software is always going to have a really long uphill battle to implement anything because he's not going to know the internal structure of the program, or even the language it's done on. And the tragedy is that the developers may end up rejecting the contribution when it's done based on any lunacy that crosses their minds.

The real issue here is not overtype but the fact that this code editor is missing some very basic, standard and key features that for some reason people have been asking for years, and years, and even more years, and are only finding "righteous ignoration". It's becoming clearer with the years that VScode had some good design decisions in the design stage that allowed for some good features like being able to colorize code of different languages on different parts of the files and the automation and plug-in capabilities, but looks like it got fatal flaws too that make very difficult or impossible to fix the missing features people need (like Virtual Space, proper column selection etc).

Yes, this program is "free" and you don't have to get any rights on "free" software, but that is a very narrow view of reality. Reality is that this program is being done by a big corporation that spends a lot on making sure everyone uses their software, and many people are being FORCED to use it by the policies of the company they work at. It's not like this is being done by voluntaries at home giving their time for free. There's telemetry so you can be sure Microsoft is getting their money back in some way or another.

Asking for insert mode in a code editor, column selection, or being able to move the cursor over empty parts of the file so you can edit with normality the values of an array of write aligned comments is not righteous indignation, it's people being baflled at what pretends to be a proper code editor that looks like it wasn't initially designed for programming.

@IvanPizhenko
Copy link

IvanPizhenko commented Sep 28, 2023

You'd think it would be an easy fix, no?

Not so easy. Fix normally should be done right in the Chromium browser (even not a fix, it will be a whole new feature), then ported into Electron framework, then VS Code should adopt new Electron version and enable functionality. Can you please do it?

@cssjr
Copy link

cssjr commented Sep 28, 2023

You'd think it would be an easy fix, no?

Not so easy. Fix normally should be done right in the Chromium browser (even not a fix, it will be a whole new feature), then ported into Electron framework, then VS Code should adopt new Electron version and enable functionality. Can you please do it?

I am considering it. So you think this is an issue with Chromium, not with VS Code?

@IvanPizhenko
Copy link

IvanPizhenko commented Sep 28, 2023

You'd think it would be an easy fix, no?

Not so easy. Fix normally should be done right in the Chromium browser (even not a fix, it will be a whole new feature), then ported into Electron framework, then VS Code should adopt new Electron version and enable functionality. Can you please do it?

I am considering it. So you think this is an issue with Chromium, not with VS Code?

Yes, maybe issue starts in the Chromium. Because Chromium does not support overwrite mode in its HTML edit.

UPDATE: I have found that few comments above it was mentioned that VS Code uses something called "Monaco" as its text editor and it is likely not a HTML editing control under the hood. Nevertheless, that thing also doesn't support overwrite mode.

@m6502
Copy link

m6502 commented Sep 28, 2023

It's just the opposite. Monaco is done by using the code FROM VS Code, as you can see in this issue about virtual space that gets closed and people directed to the VSCode issue: microsoft/monaco-editor#919 For Monaco to support text insert mode it has to be added in VSCode just as with virtual space.

@gmccullo
Copy link

Note: There are extensions that provide this functionality now. Their approach might be useful.

@starball5
Copy link

Related on Stack Overflow: Is there a cursor overwrite/overtype mode in VS Code?

(sorry for the ping everyone. I have a habit of backlinking related SO posts so that if anyone in the issue ticket has useful info about how to work around the problem that's not already covered in the SO Q&A, they can go there and add it (though usually I also try to read through all the comments to write up a summary answer post there, which I have done in this case). have a nice day)

@codegor
Copy link

codegor commented Jan 8, 2024

I waiting this feature too

@evren320
Copy link

evren320 commented Jan 20, 2024

Now since 9 years this feature is requested and ignored by the developers.
I am using overtype extension as a workaround.

@javierparty
Copy link

This feature should be part of VS Code and not require any extension. It's true, though, that it's rarely used by developers, and there are a few workarounds that don't require too much effort. Nevertheless, it is needed.

@nurbles
Copy link

nurbles commented May 1, 2024

@javierparty "It's true, though, that it's rarely used by developers," ...

Speak for yourself only! I probably toggle between insert and overtype almost a hundred times a day (or more) while I'm working. Not everyone has the same style of working with an editor! If we did, then there would actually be one great editor instead of many very good ones, each fitted to a different editing style.

But regardless, this fundamental feature should never have been excluded in the first place and should be fixed ASAP.

@javierparty
Copy link

@nurbles, I exactly do not speak for my self, why should I. When I say developers, I mean in general. It is not about you, nor about me (I do need this feature actually). You are one of the few rare cases, I would dare to say, that need this in a regular basis. If this was indeed a feature that was statistically used by the majority of developers, it would surly have been addressed at an earlier stage of development at VS Code. So, when I say developers, I do not mean you, nor do I mean each developer, but rather a general majority. For something to happen, it has to be a general matter, not about the need of one person. So I do not speak for myself in this case. But I may be wrong. Even if I do not think so. :-)

@Quackdoc
Copy link

Quackdoc commented May 1, 2024

@javierparty

Even if I do not think so. :-)

You could have left out the so. :-) since it doesn't seem like you think

@hilari0n
Copy link

hilari0n commented May 1, 2024

If this was indeed a feature that was statistically used by the majority of developers, it would surly have been addressed at an earlier stage of development at VS Code.

This may indeed be a feature that is not expected by the majority of developers (it is by me), but - from my experience - I would say, that it's not necessarily the real reason for it not being addressed.
I've seen a lot of features used rarely, which are being worked on. And I've seen features expected by huge crowds receiving no attention for a long time. And it is in a commercial software, people pay for. In case of VSCode, people don't pay directly for, there's even less incentive to work on features based on how many users want it (it'll rather be stuff related to paid services supported by VSCode).
Maybe it's just me, having bad experience in this area, working for a big corpo doing some commercial software and also experiencing very weird behavior from some OSS development personas.
As the VSCode devs haven't even peeped here for a long time, it'll either not be touched ever, or at least in years.

@m6502
Copy link

m6502 commented May 1, 2024

@nurbles You are one of the few rare cases, I would dare to say, that need this in a regular basis. If this was indeed a feature that was statistically used by the majority of developers, it would surly have been addressed at an earlier stage of development at VS Code.

To be honest I'm baffled to read something like this. You don't really seem to edit many tables or initialize much data in arrays, right? You don't work with vectors or paste code that does similar operations with different variables and just type over the name of the variables? I use this for so many things that it would have never occurred to me that someone would think this is a niche feature. This has been available since at least the 1970s in an innumerable amount of text and code editors... Even text processors have this mode for typing.

The fact that it's not included in VSCode doesn't mean it's a niche feature. Just see virtual space, rectancular selections and many more...

@ParadoxV5
Copy link

ParadoxV5 commented May 1, 2024

Speak for yourself only!

You could have left out the so. :-) since it doesn't seem like you think

We wouldn’t have this argument if this not-so-uncommon feature exist already.

As the VSCode devs haven't even peeped here for a long time

Where’s a moderator / community manager when you need one.


I've seen a lot of features used rarely, which are being worked on. And I've seen features expected by huge crowds receiving no attention for a long time. And it is in a commercial software, people pay for. In case of VSCode, people don't pay directly for, there's even less incentive to work on features based on how many users want it (it'll rather be stuff related to paid services supported by VSCode).

📠

You don't really seem to edit many tables or initialize much data in arrays, right? You don't work with vectors or paste code that does similar operations with different variables and just type over the name of the variables? […] This has been available since at least the 1970s in an innumerable amount of text and code editors... […] The fact that it's not included in VSCode doesn't mean it's a niche feature. Just see virtual space, rectancular selections and many more...

It beats me too how VSCode has multiple cursors and every feature one expect from a modern text editor except overtype mode.
It is as if overtype mode is an obsolete feature that existed because typewriters don’t insert.

I’m also waiting for tabular CSV editing (#145092). That thread saw one reply in two days and went silent ever since.
[P.S.] But this request came out 7 years earlier when issue IDs just recently became 4 digits‽

@mwpowellhtx
Copy link

As age old as the Linux Vim versus Emacs versus Nano, and I used to be pretty decent with Vim back in the day, no attachment there, no horse in the race necessarily. Nowadays I just appreciate modern day "now taken for granted features". Like the insert versus overtype.

@m6502
Copy link

m6502 commented May 1, 2024

This is a 14 years old video talking about overtype in Microsoft Word, of all things: https://www.youtube.com/watch?v=Y3xC655rJP8

To be honest I think I can't even remember a code editor, ever, that didn't have this feature.

@sergiohstimega
Copy link

sergiohstimega commented May 2, 2024

Hi! When editing space fixed text that's necessary!! now i'm counting the spaces I have to insert, really bad.
overtype extension work bad for me, very very slow and misses half of the keypresses ...

@GitMensch
Copy link
Contributor

That is now officially available with the hex editor (which previously only had replace), so let's hope it will come to code editors as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor-input Editor text input feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests