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

Closed
miroshko opened this issue Dec 4, 2015 · 237 comments · Fixed by #233188
Closed

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

miroshko opened this issue Dec 4, 2015 · 237 comments · Fixed by #233188
Assignees
Labels
editor-input Editor text input feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders on-testplan
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

@lppedd
Copy link

lppedd commented Oct 7, 2024

For a second I thought it was finally implemented. Then I remembered I have the Overtype extension enabled.

Not how I wanted to end the day.

@GunnarBernsteinHH
Copy link

I believe this bug will see its 10 year anniversary!

@IvanPizhenko
Copy link

I believe this bug will see its 10 year anniversary!

Not a bug, but the feature request...
Still, unlikely to be fulfilled.

@aiday-mar aiday-mar self-assigned this Nov 6, 2024
@vs-code-engineering vs-code-engineering bot added the unreleased Patch has not yet been released in VS Code Insiders label Nov 29, 2024
@m6502
Copy link

m6502 commented Nov 29, 2024

These seem to be nice news, this feature is a basic feature! Thanks.

@IvanPizhenko
Copy link

Finally, it has happened (!!!).
Thanks to @aiday-mar who implemented it, and the whole Microsoft for paying attention to this request, finally.

@drankinatty
Copy link

Big thank you personally, and from the community!

@vs-code-engineering vs-code-engineering bot added insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Dec 2, 2024
@aiday-mar aiday-mar mentioned this issue Dec 2, 2024
2 tasks
@adam-wolfe
Copy link

Just wanted to say thanks and that the functionality works great in VS Code Insiders.

@planetrocky
Copy link

@aiday-mar is a hero! Thank you!

Us old(er) programmers grew up with insert/overtype, some use-cases it’s extremely useful!

@lppedd
Copy link

lppedd commented Dec 5, 2024

Will the change also land on the standalone Monaco Editor?

@aiday-mar
Copy link
Contributor

Hi everyone thank you for the kind words.

@lppedd I believe yes, as you can use the command palette in the monaco editor and the action should be available from there.

@evisong
Copy link

evisong commented Dec 16, 2024

I'm so happy to see this feature landed in v1.96.0 release notes. I bind the "insert" key to this feature in my Keyboard Shortcuts and it works well, thanks for adding this feature!

Btw, is it possible to bind the "insert" key by default in VSCode? I don't think many developers assign this key to other features.

@StrangePeanut
Copy link

Btw, is it possible to bind the "insert" key by default in VSCode? I don't think many developers assign this key to other features.

@evisong it's definitely bound by default for me. Maybe you've used the insert key for something else before.

@aiday-mar
Copy link
Contributor

The insert key is bound by default on Windows. On MacOS the keybinding is option+command+o

@lppedd
Copy link

lppedd commented Dec 16, 2024

@aiday-mar is there a way to get the current input mode setting ('insert' | 'overtype')?
My use case is having webviews with standalone Monaco Editor using the correct input mode, aligned with VS Code.

@aiday-mar
Copy link
Contributor

I believe you should be able to access any setting value from an extension using vscode.workspace.getConfiguration

@lppedd
Copy link

lppedd commented Dec 16, 2024

Under settings I can only find the editor.overtypeCursorStyle and editor.overtypeOnPaste key.
There seems to be no key for the actual overtype state.

@aiday-mar
Copy link
Contributor

Ah yes @lppedd apologies, you are right. We do not surface the overtype/insert mode using settings. The behavior is similar to tabMovesFocus in that the state is stored in memory for the duration of the session. If you need this functionality, could you open an issue about this?

@lppedd
Copy link

lppedd commented Dec 16, 2024

@aiday-mar sure thing, I've created #236218.

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 insiders-released Patch has been released in VS Code Insiders on-testplan
Projects
None yet
Development

Successfully merging a pull request may close this issue.