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

Test: Overtype mode #234987

Closed
2 tasks done
aiday-mar opened this issue Dec 2, 2024 · 0 comments
Closed
2 tasks done

Test: Overtype mode #234987

aiday-mar opened this issue Dec 2, 2024 · 0 comments

Comments

@aiday-mar
Copy link
Contributor

aiday-mar commented Dec 2, 2024

ref #1012

Complexity: 3

Create Issue


This iteration, I have added overtype mode, which allows to replace characters as you are typing instead of inserting. There are two new settings:

  • editor.overtypeCursorStyle: controls the style of the cursor in overtype mode, the default is block.
  • editor.overtypeOnPaste: controls whether pasting should replace or insert characters in overtype mode. The default is true.

To test please do the following:

  1. Update VS Code to the latest, and run the command Toggle Overtype/Insert Mode
  2. Verify that in overtype mode, a status bar action appears with the text OVR. Verify that clicking on it, toggles back insert mode
  3. Open a file, place the cursor and type. Verify that the characters after the cursor are replaced correctly.
    3.a. Test the above with an empty selection and a non-empty selection, and verify the characters are replaced correctly
  4. Set the setting editor.overtypeOnPaste to true. Paste some text, and verify that the text that is pasted replaces the current active line. If you paste several lines, the lines after the first are inserted below the active line. This behavior mirrors Vim pasting in overtype mode.
    4.a. Test the above with an empty selection and a non-empty selection
  5. Set the setting editor.overtypeOnPaste to false. Paste some text, and verify that the text is correctly inserted as before.
@vs-code-engineering vs-code-engineering bot added this to the November 2024 milestone Dec 2, 2024
@aiday-mar aiday-mar assigned aiday-mar and unassigned aiday-mar Dec 2, 2024
@alexr00 alexr00 removed their assignment Dec 3, 2024
@pierceboggan pierceboggan removed their assignment Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants